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

Method WriteStringInt64Map

go/fory/writer.go:470–482  ·  view source on GitHub ↗

WriteStringInt64Map writes map[string]int64 with ref/type info

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

Source from the content-addressed store, hash-verified

468
469// WriteStringInt64Map writes map[string]int64 with ref/type info
470func (c *WriteContext) WriteStringInt64Map(value map[string]int64, refMode RefMode, writeTypeInfo bool) {
471 if refMode != RefModeNone {
472 if value == nil {
473 c.buffer.WriteInt8(NullFlag)
474 return
475 }
476 c.buffer.WriteInt8(NotNullValueFlag)
477 }
478 if writeTypeInfo {
479 c.WriteTypeId(MAP)
480 }
481 writeMapStringInt64(c.buffer, value, false)
482}
483
484// WriteStringInt32Map writes map[string]int32 with ref/type info
485func (c *WriteContext) WriteStringInt32Map(value map[string]int32, refMode RefMode, writeTypeInfo bool) {

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
writeMapStringInt64Function · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected