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

Method UnsafeReadVarUint64

go/fory/buffer.go:1318–1320  ·  view source on GitHub ↗

UnsafeReadVarUint64 reads a VarUint64 without bounds checking. Caller must ensure remaining() >= 10 before calling.

()

Source from the content-addressed store, hash-verified

1316// UnsafeReadVarUint64 reads a VarUint64 without bounds checking.
1317// Caller must ensure remaining() >= 10 before calling.
1318func (b *ByteBuffer) UnsafeReadVarUint64() uint64 {
1319 return b.readVarUint64Fast()
1320}
1321
1322// ReadVarUint32 reads a VarUint32 and sets error on bounds violation
1323func (b *ByteBuffer) ReadVarUint32(err *Error) uint32 {

Callers 2

ReadDataMethod · 0.80

Calls 1

readVarUint64FastMethod · 0.95

Tested by

no test coverage detected