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

Method ReadStringBoolMap

go/fory/reader.go:613–624  ·  view source on GitHub ↗

ReadStringBoolMap reads map[string]bool with optional ref/type info

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

611
612// ReadStringBoolMap reads map[string]bool with optional ref/type info
613func (c *ReadContext) ReadStringBoolMap(refMode RefMode, readType bool) map[string]bool {
614 err := c.Err()
615 if refMode != RefModeNone {
616 if c.buffer.ReadInt8(err) == NullFlag {
617 return nil
618 }
619 }
620 if readType && !c.readExpectedTypeID(MAP) {
621 return nil
622 }
623 return readMapStringBool(c)
624}
625
626// ReadInt32Int32Map reads map[int32]int32 with optional ref/type info
627func (c *ReadContext) ReadInt32Int32Map(refMode RefMode, readType bool) map[int32]int32 {

Callers 2

readRemainingFieldMethod · 0.80
DeserializeFunction · 0.80

Calls 4

ErrMethod · 0.95
readExpectedTypeIDMethod · 0.95
readMapStringBoolFunction · 0.85
ReadInt8Method · 0.45

Tested by

no test coverage detected