ReadVarIntFast
- Namespace
- Rowles.LeanLucene.Store
- Assembly
- Rowles.LeanLucene.dll
Methods
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().
ReadVarIntFast(ref long)
Stateless variant of ReadVarIntFast() using a caller-supplied cursor.