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

Method WriteStringStringMap

go/fory/writer.go:455–467  ·  view source on GitHub ↗

WriteStringStringMap writes map[string]string with ref/type info

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

Source from the content-addressed store, hash-verified

453
454// WriteStringStringMap writes map[string]string with ref/type info
455func (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
470func (c *WriteContext) WriteStringInt64Map(value map[string]int64, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
writeMapStringStringFunction · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected