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

Method WriteStringBoolMap

go/fory/writer.go:530–542  ·  view source on GitHub ↗

WriteStringBoolMap writes map[string]bool with ref/type info

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

Source from the content-addressed store, hash-verified

528
529// WriteStringBoolMap writes map[string]bool with ref/type info
530func (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
545func (c *WriteContext) WriteInt32Int32Map(value map[int32]int32, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
writeMapStringBoolFunction · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected