WriteStringStringMap writes map[string]string with ref/type info
(value map[string]string, refMode RefMode, writeTypeInfo bool)
| 453 | |
| 454 | // WriteStringStringMap writes map[string]string with ref/type info |
| 455 | func (c *WriteContext) WriteStringStringMap(value map[string]string, refMode RefMode, writeTypeInfo bool) { |
| 456 | if refMode != RefModeNone { |
| 457 | if value == nil { |
| 458 | c.buffer.WriteInt8(NullFlag) |
| 459 | return |
| 460 | } |
| 461 | c.buffer.WriteInt8(NotNullValueFlag) |
| 462 | } |
| 463 | if writeTypeInfo { |
| 464 | c.WriteTypeId(MAP) |
| 465 | } |
| 466 | writeMapStringString(c.buffer, value, false) |
| 467 | } |
| 468 | |
| 469 | // WriteStringInt64Map writes map[string]int64 with ref/type info |
| 470 | func (c *WriteContext) WriteStringInt64Map(value map[string]int64, refMode RefMode, writeTypeInfo bool) { |
no test coverage detected