WriteStringFloat64Map writes map[string]float64 with ref/type info
(value map[string]float64, refMode RefMode, writeTypeInfo bool)
| 513 | |
| 514 | // WriteStringFloat64Map writes map[string]float64 with ref/type info |
| 515 | func (c *WriteContext) WriteStringFloat64Map(value map[string]float64, refMode RefMode, writeTypeInfo bool) { |
| 516 | if refMode != RefModeNone { |
| 517 | if value == nil { |
| 518 | c.buffer.WriteInt8(NullFlag) |
| 519 | return |
| 520 | } |
| 521 | c.buffer.WriteInt8(NotNullValueFlag) |
| 522 | } |
| 523 | if writeTypeInfo { |
| 524 | c.WriteTypeId(MAP) |
| 525 | } |
| 526 | writeMapStringFloat64(c.buffer, value, false) |
| 527 | } |
| 528 | |
| 529 | // WriteStringBoolMap writes map[string]bool with ref/type info |
| 530 | func (c *WriteContext) WriteStringBoolMap(value map[string]bool, refMode RefMode, writeTypeInfo bool) { |
no test coverage detected