lib9p

Go 9P library.
Log | Files | Refs

commit 9b7c9946406552f669dd92631ae97ca49ae8097c
parent faf9d00ca472e371456df1ed3d25bb1039431599
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Tue, 10 Oct 2023 11:55:41 +0900

delete size field from TClunk

Diffstat:
Mfcall.go | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fcall.go b/fcall.go @@ -1173,20 +1173,18 @@ func (msg *RWrite) String() string { } type TClunk struct { - size uint32 tag uint16 fid uint32 } func newTClunk(buf []byte) *TClunk { msg := new(TClunk) - msg.size = gbit32(buf[0:4]) msg.tag = gbit16(buf[5:7]) msg.fid = gbit32(buf[7:11]) return msg } -func (msg *TClunk) Size() uint32 { return msg.size } +func (msg *TClunk) Size() uint32 { return 4 + 1 + 2 + 4 } func (msg *TClunk) Type() MsgType { return Tclunk } func (msg *TClunk) Tag() uint16 { return msg.tag } func (msg *TClunk) SetTag(t uint16) { msg.tag = t }