1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-21 19:13:20 +08:00

optimize(helper): writer decl.

This commit is contained in:
源文雨
2025-02-25 22:44:14 +09:00
parent a2c442557a
commit 2c5bfa5c2d
3 changed files with 24 additions and 18 deletions

View File

@@ -46,7 +46,7 @@ func (m *Me) wait(data []byte) *orbyte.Item[head.Packet] {
}
return nil
}
data = w.TransBytes()
data = w.TransUnderlyingBytes()
if len(data) < bound {
bound = len(data)
endl = "."

View File

@@ -80,7 +80,7 @@ func (p *packet) ReadFrom(r io.Reader) (n int64, err error) {
if err != nil {
return
}
p.dat = w.TransBytes()
p.dat = w.TransUnderlyingBytes()
return
}