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

Method ReadInt64Int64Map

go/fory/reader.go:641–652  ·  view source on GitHub ↗

ReadInt64Int64Map reads map[int64]int64 with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

639
640// ReadInt64Int64Map reads map[int64]int64 with optional ref/type info
641func (c *ReadContext) ReadInt64Int64Map(refMode RefMode, readType bool) map[int64]int64 {
642 err := c.Err()
643 if refMode != RefModeNone {
644 if c.buffer.ReadInt8(err) == NullFlag {
645 return nil
646 }
647 }
648 if readType && !c.readExpectedTypeID(MAP) {
649 return nil
650 }
651 return readMapInt64Int64(c)
652}
653
654// ReadIntIntMap reads map[int]int with optional ref/type info
655func (c *ReadContext) ReadIntIntMap(refMode RefMode, readType bool) map[int]int {

Callers 1

DeserializeFunction · 0.80

Calls 4

ErrMethod · 0.95
readExpectedTypeIDMethod · 0.95
readMapInt64Int64Function · 0.85
ReadInt8Method · 0.45

Tested by

no test coverage detected