WriteStringBoolMap writes map[string]bool with ref/type info
(value map[string]bool, refMode RefMode, writeTypeInfo bool)
| 528 | |
| 529 | // WriteStringBoolMap writes map[string]bool with ref/type info |
| 530 | func (c *WriteContext) WriteStringBoolMap(value map[string]bool, refMode RefMode, writeTypeInfo bool) { |
| 531 | if refMode != RefModeNone { |
| 532 | if value == nil { |
| 533 | c.buffer.WriteInt8(NullFlag) |
| 534 | return |
| 535 | } |
| 536 | c.buffer.WriteInt8(NotNullValueFlag) |
| 537 | } |
| 538 | if writeTypeInfo { |
| 539 | c.WriteTypeId(MAP) |
| 540 | } |
| 541 | writeMapStringBool(c.buffer, value, false) |
| 542 | } |
| 543 | |
| 544 | // WriteInt32Int32Map writes map[int32]int32 with ref/type info |
| 545 | func (c *WriteContext) WriteInt32Int32Map(value map[int32]int32, refMode RefMode, writeTypeInfo bool) { |
no test coverage detected