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

Method ReadCollectionLength

go/fory/reader.go:254–261  ·  view source on GitHub ↗

ReadCollectionLength reads a length value for collections.

()

Source from the content-addressed store, hash-verified

252
253// ReadCollectionLength reads a length value for collections.
254func (c *ReadContext) ReadCollectionLength() int {
255 err := c.Err()
256 length := c.buffer.ReadLength(err)
257 if c.err.HasError() {
258 return 0
259 }
260 return length
261}
262
263// ReadBinaryLength reads a byte length value for binary data.
264func (c *ReadContext) ReadBinaryLength() int {

Callers 14

ReadDataMethod · 0.80
readDataMethod · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80
skipCollectionFunction · 0.80
skipMapFunction · 0.80
readTypedMapSizeFunction · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80
ReadTypedMethod · 0.80

Calls 3

ErrMethod · 0.95
ReadLengthMethod · 0.80
HasErrorMethod · 0.45