(l int)
| 42 | } |
| 43 | |
| 44 | func (e *Encoder) EncodeBytesLen(l int) error { |
| 45 | if l < 256 { |
| 46 | return e.write1(msgpcode.Bin8, uint8(l)) |
| 47 | } |
| 48 | if l <= math.MaxUint16 { |
| 49 | return e.write2(msgpcode.Bin16, uint16(l)) |
| 50 | } |
| 51 | return e.write4(msgpcode.Bin32, uint32(l)) |
| 52 | } |
| 53 | |
| 54 | func (e *Encoder) encodeStringLen(l int) error { |
| 55 | if l < 32 { |
no test coverage detected