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

Method WriteInt64Int64Map

go/fory/writer.go:560–572  ·  view source on GitHub ↗

WriteInt64Int64Map writes map[int64]int64 with ref/type info

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

Source from the content-addressed store, hash-verified

558
559// WriteInt64Int64Map writes map[int64]int64 with ref/type info
560func (c *WriteContext) WriteInt64Int64Map(value map[int64]int64, refMode RefMode, writeTypeInfo bool) {
561 if refMode != RefModeNone {
562 if value == nil {
563 c.buffer.WriteInt8(NullFlag)
564 return
565 }
566 c.buffer.WriteInt8(NotNullValueFlag)
567 }
568 if writeTypeInfo {
569 c.WriteTypeId(MAP)
570 }
571 writeMapInt64Int64(c.buffer, value, false)
572}
573
574// WriteIntIntMap writes map[int]int with ref/type info
575func (c *WriteContext) WriteIntIntMap(value map[int]int, refMode RefMode, writeTypeInfo bool) {

Callers

nothing calls this directly

Calls 3

WriteTypeIdMethod · 0.95
writeMapInt64Int64Function · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected