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

Method ReadStringFloat64Map

go/fory/reader.go:599–610  ·  view source on GitHub ↗

ReadStringFloat64Map reads map[string]float64 with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

597
598// ReadStringFloat64Map reads map[string]float64 with optional ref/type info
599func (c *ReadContext) ReadStringFloat64Map(refMode RefMode, readType bool) map[string]float64 {
600 err := c.Err()
601 if refMode != RefModeNone {
602 if c.buffer.ReadInt8(err) == NullFlag {
603 return nil
604 }
605 }
606 if readType && !c.readExpectedTypeID(MAP) {
607 return nil
608 }
609 return readMapStringFloat64(c)
610}
611
612// ReadStringBoolMap reads map[string]bool with optional ref/type info
613func (c *ReadContext) ReadStringBoolMap(refMode RefMode, readType bool) map[string]bool {

Callers 2

readRemainingFieldMethod · 0.80
DeserializeFunction · 0.80

Calls 4

ErrMethod · 0.95
readExpectedTypeIDMethod · 0.95
readMapStringFloat64Function · 0.85
ReadInt8Method · 0.45

Tested by

no test coverage detected