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

Method ReadUint64

go/fory/buffer.go:373–382  ·  view source on GitHub ↗

ReadUint64 reads a uint64 and sets error on bounds violation

(err *Error)

Source from the content-addressed store, hash-verified

371
372// ReadUint64 reads a uint64 and sets error on bounds violation
373func (b *ByteBuffer) ReadUint64(err *Error) uint64 {
374 if b.readerIndex+8 > len(b.data) {
375 if !b.fill(8, err) {
376 return 0
377 }
378 }
379 i := binary.LittleEndian.Uint64(b.data[b.readerIndex:])
380 b.readerIndex += 8
381 return i
382}
383
384// ReadInt32 reads an int32 and sets error on bounds violation
385func (b *ByteBuffer) ReadInt32(err *Error) int32 {

Callers 10

ReadInt64Method · 0.95
ReadFloat64Method · 0.95
ReadDataMethod · 0.80
readNumericValueByTypeIDFunction · 0.80
readDirectIntegerScalarFunction · 0.80
readRemainingFieldMethod · 0.80
readOptionFastFunction · 0.80
readFieldsInOrderMethod · 0.80
skipValueFunction · 0.80

Calls 1

fillMethod · 0.95

Tested by

no test coverage detected