MCPcopy Create free account
hub / github.com/apache/fory / WriteStringFloat64Map

Method WriteStringFloat64Map

go/fory/writer.go:515–527  ·  view source on GitHub ↗

WriteStringFloat64Map writes map[string]float64 with ref/type info

(value map[string]float64, refMode RefMode, writeTypeInfo bool)

Source from the content-addressed store, hash-verified

513
514// WriteStringFloat64Map writes map[string]float64 with ref/type info
515func (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
530func (c *WriteContext) WriteStringBoolMap(value map[string]bool, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
writeMapStringFloat64Function · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected