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

Method ReadInt32Int32Map

go/fory/reader.go:627–638  ·  view source on GitHub ↗

ReadInt32Int32Map reads map[int32]int32 with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

625
626// ReadInt32Int32Map reads map[int32]int32 with optional ref/type info
627func (c *ReadContext) ReadInt32Int32Map(refMode RefMode, readType bool) map[int32]int32 {
628 err := c.Err()
629 if refMode != RefModeNone {
630 if c.buffer.ReadInt8(err) == NullFlag {
631 return nil
632 }
633 }
634 if readType && !c.readExpectedTypeID(MAP) {
635 return nil
636 }
637 return readMapInt32Int32(c)
638}
639
640// ReadInt64Int64Map reads map[int64]int64 with optional ref/type info
641func (c *ReadContext) ReadInt64Int64Map(refMode RefMode, readType bool) map[int64]int64 {

Callers 1

DeserializeFunction · 0.80

Calls 4

ErrMethod · 0.95
readExpectedTypeIDMethod · 0.95
readMapInt32Int32Function · 0.85
ReadInt8Method · 0.45

Tested by

no test coverage detected