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

Method ReadIntIntMap

go/fory/reader.go:655–666  ·  view source on GitHub ↗

ReadIntIntMap reads map[int]int with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

653
654// ReadIntIntMap reads map[int]int with optional ref/type info
655func (c *ReadContext) ReadIntIntMap(refMode RefMode, readType bool) map[int]int {
656 err := c.Err()
657 if refMode != RefModeNone {
658 if c.buffer.ReadInt8(err) == NullFlag {
659 return nil
660 }
661 }
662 if readType && !c.readExpectedTypeID(MAP) {
663 return nil
664 }
665 return readMapIntInt(c)
666}
667
668// ReadBufferObject reads a buffer object
669func (c *ReadContext) ReadBufferObject() *ByteBuffer {

Callers 2

readRemainingFieldMethod · 0.80
DeserializeFunction · 0.80

Calls 4

ErrMethod · 0.95
readExpectedTypeIDMethod · 0.95
readMapIntIntFunction · 0.85
ReadInt8Method · 0.45

Tested by

no test coverage detected