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

Method ReadStringInt32Map

go/fory/reader.go:571–582  ·  view source on GitHub ↗

ReadStringInt32Map reads map[string]int32 with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

569
570// ReadStringInt32Map reads map[string]int32 with optional ref/type info
571func (c *ReadContext) ReadStringInt32Map(refMode RefMode, readType bool) map[string]int32 {
572 err := c.Err()
573 if refMode != RefModeNone {
574 if c.buffer.ReadInt8(err) == NullFlag {
575 return nil
576 }
577 }
578 if readType && !c.readExpectedTypeID(MAP) {
579 return nil
580 }
581 return readMapStringInt32(c)
582}
583
584// ReadStringIntMap reads map[string]int with optional ref/type info
585func (c *ReadContext) ReadStringIntMap(refMode RefMode, readType bool) map[string]int {

Callers 2

readRemainingFieldMethod · 0.80
DeserializeFunction · 0.80

Calls 4

ErrMethod · 0.95
readExpectedTypeIDMethod · 0.95
readMapStringInt32Function · 0.85
ReadInt8Method · 0.45

Tested by

no test coverage detected