test
This commit is contained in:
parent
89bf185535
commit
fcec3f1189
2
def.go
2
def.go
@ -58,7 +58,7 @@ type PacketAdminJoin struct {
|
|||||||
|
|
||||||
func (p *PacketAdminJoin) Bytes() []byte {
|
func (p *PacketAdminJoin) Bytes() []byte {
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
p.PLength = binary.Size(p)
|
p.PLength = uint16(binary.Size(p))
|
||||||
_ = binary.Write(buf, binary.LittleEndian, p)
|
_ = binary.Write(buf, binary.LittleEndian, p)
|
||||||
return buf.Bytes()
|
return buf.Bytes()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user