Skip to content

Commit

Permalink
fix: rread must implement payloader for recv
Browse files Browse the repository at this point in the history
  • Loading branch information
djdv committed Jun 1, 2023
1 parent 0230d8b commit 2f84f3b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions p9/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,23 @@ func (*rread) typ() msgType {
return msgRread
}

// FixedSize implements payloader.FixedSize.
func (*rread) FixedSize() uint32 {
return 4
}

// Payload implements payloader.Payload.
func (r *rread) Payload() []byte {
return r.Data
}

// SetPayload implements payloader.SetPayload.
func (r *rread) SetPayload(p []byte) {
r.Data = p
}

func (*rread) PayloadCleanup() {}

// FixedSize implements payloader.FixedSize.
func (*rreadPayloader) FixedSize() uint32 {
return 4
Expand Down

0 comments on commit 2f84f3b

Please sign in to comment.