(l int)
| 180 | } |
| 181 | |
| 182 | func (e *Encoder) EncodeMapLen(l int) error { |
| 183 | if l < 16 { |
| 184 | return e.writeCode(msgpcode.FixedMapLow | byte(l)) |
| 185 | } |
| 186 | if l <= math.MaxUint16 { |
| 187 | return e.write2(msgpcode.Map16, uint16(l)) |
| 188 | } |
| 189 | return e.write4(msgpcode.Map32, uint32(l)) |
| 190 | } |
| 191 | |
| 192 | func encodeStructValue(e *Encoder, strct reflect.Value) error { |
| 193 | structFields := structs.Fields(strct.Type(), e.structTag) |
no test coverage detected