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

Method ReadStringInt64Map

go/fory/reader.go:557–568  ·  view source on GitHub ↗

ReadStringInt64Map reads map[string]int64 with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

555
556// ReadStringInt64Map reads map[string]int64 with optional ref/type info
557func (c *ReadContext) ReadStringInt64Map(refMode RefMode, readType bool) map[string]int64 {
558 err := c.Err()
559 if refMode != RefModeNone {
560 if c.buffer.ReadInt8(err) == NullFlag {
561 return nil
562 }
563 }
564 if readType && !c.readExpectedTypeID(MAP) {
565 return nil
566 }
567 return readMapStringInt64(c)
568}
569
570// ReadStringInt32Map reads map[string]int32 with optional ref/type info
571func (c *ReadContext) ReadStringInt32Map(refMode RefMode, readType bool) map[string]int32 {

Callers 2

readRemainingFieldMethod · 0.80
DeserializeFunction · 0.80

Calls 4

ErrMethod · 0.95
readExpectedTypeIDMethod · 0.95
readMapStringInt64Function · 0.85
ReadInt8Method · 0.45

Tested by

no test coverage detected