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

Method ReadBinaryLength

go/fory/reader.go:264–271  ·  view source on GitHub ↗

ReadBinaryLength reads a byte length value for binary data.

()

Source from the content-addressed store, hash-verified

262
263// ReadBinaryLength reads a byte length value for binary data.
264func (c *ReadContext) ReadBinaryLength() int {
265 err := c.Err()
266 length := c.buffer.ReadLength(err)
267 if c.err.HasError() {
268 return 0
269 }
270 return length
271}
272
273// ============================================================================
274// Typed Read Methods - Fastpath for codegen

Callers 15

ReadByteSliceMethod · 0.95
ReadBufferObjectMethod · 0.95
ReadDataMethod · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80
skipValueFunction · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80
ReadDataMethod · 0.80

Calls 3

ErrMethod · 0.95
ReadLengthMethod · 0.80
HasErrorMethod · 0.45

Tested by

no test coverage detected