This commit is contained in:
esrrhs 2018-12-18 16:08:28 +08:00
parent aaa0d3668c
commit ae1cb0762b

View File

@ -66,6 +66,8 @@ func (p *MyMsg) MarshalString(s string) []byte {
// Marshal implements the Marshal method of MessageBody interface.
func (p *MyMsg) Unmarshal(b []byte) error {
defer func() {
}()
p.TYPE = binary.BigEndian.Uint32(b[:4])