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

Method WriteInt32Int32Map

go/fory/writer.go:545–557  ·  view source on GitHub ↗

WriteInt32Int32Map writes map[int32]int32 with ref/type info

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

Source from the content-addressed store, hash-verified

543
544// WriteInt32Int32Map writes map[int32]int32 with ref/type info
545func (c *WriteContext) WriteInt32Int32Map(value map[int32]int32, refMode RefMode, writeTypeInfo bool) {
546 if refMode != RefModeNone {
547 if value == nil {
548 c.buffer.WriteInt8(NullFlag)
549 return
550 }
551 c.buffer.WriteInt8(NotNullValueFlag)
552 }
553 if writeTypeInfo {
554 c.WriteTypeId(MAP)
555 }
556 writeMapInt32Int32(c.buffer, value, false)
557}
558
559// WriteInt64Int64Map writes map[int64]int64 with ref/type info
560func (c *WriteContext) WriteInt64Int64Map(value map[int64]int64, refMode RefMode, writeTypeInfo bool) {

Callers

nothing calls this directly

Calls 3

WriteTypeIdMethod · 0.95
writeMapInt32Int32Function · 0.85
WriteInt8Method · 0.45

Tested by

no test coverage detected