()
| 93 | } |
| 94 | |
| 95 | func (x *resp) SizeBytes() int { |
| 96 | var n int |
| 97 | n += x.id.SizeBytes() |
| 98 | n += x.val.SizeBytes() |
| 99 | n += x.errno.SizeBytes() |
| 100 | n += x.flags.SizeBytes() |
| 101 | return n |
| 102 | } |
| 103 | |
| 104 | func (x *resp) Bytes() []byte { |
| 105 | ret := make([]byte, x.SizeBytes()) |
no outgoing calls
no test coverage detected