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

Method ReadStringIntMap

go/fory/reader.go:585–596  ·  view source on GitHub ↗

ReadStringIntMap reads map[string]int with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

583
584// ReadStringIntMap reads map[string]int with optional ref/type info
585func (c *ReadContext) ReadStringIntMap(refMode RefMode, readType bool) map[string]int {
586 err := c.Err()
587 if refMode != RefModeNone {
588 if c.buffer.ReadInt8(err) == NullFlag {
589 return nil
590 }
591 }
592 if readType && !c.readExpectedTypeID(MAP) {
593 return nil
594 }
595 return readMapStringInt(c)
596}
597
598// ReadStringFloat64Map reads map[string]float64 with optional ref/type info
599func (c *ReadContext) ReadStringFloat64Map(refMode RefMode, readType bool) map[string]float64 {

Callers 2

readRemainingFieldMethod · 0.80
DeserializeFunction · 0.80

Calls 4

ErrMethod · 0.95
readExpectedTypeIDMethod · 0.95
readMapStringIntFunction · 0.85
ReadInt8Method · 0.45

Tested by

no test coverage detected