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

Method ReadStringSlice

go/fory/reader.go:529–540  ·  view source on GitHub ↗

ReadStringSlice reads []string with optional ref/type info using LIST protocol

(refMode RefMode, readType bool)

Source from the content-addressed store, hash-verified

527
528// ReadStringSlice reads []string with optional ref/type info using LIST protocol
529func (c *ReadContext) ReadStringSlice(refMode RefMode, readType bool) []string {
530 err := c.Err()
531 if refMode != RefModeNone {
532 if c.buffer.ReadInt8(err) == NullFlag {
533 return nil
534 }
535 }
536 if readType {
537 _ = c.buffer.ReadUint8(err)
538 }
539 return ReadStringSlice(c.buffer, err)
540}
541
542// ReadStringStringMap reads map[string]string with optional ref/type info
543func (c *ReadContext) ReadStringStringMap(refMode RefMode, readType bool) map[string]string {

Callers 1

readRemainingFieldMethod · 0.80

Calls 4

ErrMethod · 0.95
ReadStringSliceFunction · 0.85
ReadUint8Method · 0.80
ReadInt8Method · 0.45

Tested by

no test coverage detected