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

Method UnsafeReadVarUint32

go/fory/buffer.go:1312–1314  ·  view source on GitHub ↗

UnsafeReadVarUint32 reads a VarUint32 without bounds checking. Caller must ensure remaining() >= 5 before calling.

(err *Error)

Source from the content-addressed store, hash-verified

1310// UnsafeReadVarUint32 reads a VarUint32 without bounds checking.
1311// Caller must ensure remaining() >= 5 before calling.
1312func (b *ByteBuffer) UnsafeReadVarUint32(err *Error) uint32 {
1313 return b.readVarUint32Fast(err)
1314}
1315
1316// UnsafeReadVarUint64 reads a VarUint64 without bounds checking.
1317// Caller must ensure remaining() >= 10 before calling.

Callers 2

ReadDataMethod · 0.80

Calls 1

readVarUint32FastMethod · 0.95

Tested by

no test coverage detected