initial ravi-v3 commit

This commit is contained in:
wish
2023-08-27 22:16:51 +10:00
parent a0f37d98b9
commit 1685f409e7
5 changed files with 103 additions and 289 deletions

View File

@@ -25,7 +25,8 @@ func (m *MsgSysOperateRegister) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl
m.SemaphoreID = bf.ReadUint32()
_ = bf.ReadUint16()
dataSize := bf.ReadUint16()
m.RawDataPayload = bf.ReadBytes(uint(dataSize))
m.RawDataPayload = bf.ReadBytes(uint(dataSize) - 1)
_ = bf.ReadBytes(1) // Null terminator
return nil
}