Table of Contents

Public method ReadVarIntFast

Namespace
Rowles.LeanLucene.Store
Assembly
Rowles.LeanLucene.dll

Methods

Internal methodInternal ReadVarIntFast()

Unrolled VarInt decoder with a single per-value bounds check. If at least 5 bytes remain, uses the branchless unrolled path. Otherwise falls back to the safe per-byte checked path. This eliminates up to 4 bounds checks per VarInt value compared to ReadVarInt().

Internal methodInternal ReadVarIntFast(ref long)

Stateless variant of ReadVarIntFast() using a caller-supplied cursor.