WriteIntIntMap writes map[int]int with ref/type info
(value map[int]int, refMode RefMode, writeTypeInfo bool)
| 573 | |
| 574 | // WriteIntIntMap writes map[int]int with ref/type info |
| 575 | func (c *WriteContext) WriteIntIntMap(value map[int]int, refMode RefMode, writeTypeInfo bool) { |
| 576 | if refMode != RefModeNone { |
| 577 | if value == nil { |
| 578 | c.buffer.WriteInt8(NullFlag) |
| 579 | return |
| 580 | } |
| 581 | c.buffer.WriteInt8(NotNullValueFlag) |
| 582 | } |
| 583 | if writeTypeInfo { |
| 584 | c.WriteTypeId(MAP) |
| 585 | } |
| 586 | writeMapIntInt(c.buffer, value, false) |
| 587 | } |
| 588 | |
| 589 | // WriteBufferObject writes a buffer object |
| 590 | // If a buffer callback is set and returns false, the buffer is written out-of-band |
no test coverage detected