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

Method WriteIntIntMap

go/fory/writer.go:575–587  ·  view source on GitHub ↗

WriteIntIntMap writes map[int]int with ref/type info

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

Source from the content-addressed store, hash-verified

573
574// WriteIntIntMap writes map[int]int with ref/type info
575func (c *WriteContext) WriteIntIntMap(value map[int]int, refMode RefMode, writeTypeInfo bool) {
576 if refMode != RefModeNone {
577 if value == nil {
578 c.buffer.WriteInt8(NullFlag)
579 return
580 }
581 c.buffer.WriteInt8(NotNullValueFlag)
582 }
583 if writeTypeInfo {
584 c.WriteTypeId(MAP)
585 }
586 writeMapIntInt(c.buffer, value, false)
587}
588
589// WriteBufferObject writes a buffer object
590// If a buffer callback is set and returns false, the buffer is written out-of-band

Callers 1

writeRemainingFieldMethod · 0.80

Calls 3

WriteTypeIdMethod · 0.95
writeMapIntIntFunction · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected