(l int)
| 89 | } |
| 90 | |
| 91 | func (e *Encoder) EncodeArrayLen(l int) error { |
| 92 | if l < 16 { |
| 93 | return e.writeCode(msgpcode.FixedArrayLow | byte(l)) |
| 94 | } |
| 95 | if l <= math.MaxUint16 { |
| 96 | return e.write2(msgpcode.Array16, uint16(l)) |
| 97 | } |
| 98 | return e.write4(msgpcode.Array32, uint32(l)) |
| 99 | } |
| 100 | |
| 101 | func encodeStringSliceValue(e *Encoder, v reflect.Value) error { |
| 102 | ss := v.Convert(stringSliceType).Interface().([]string) |
no test coverage detected