Class PackedDataInput
A DataInput wrapper to read unaligned, variable-length packed integers. This API is much slower than the PackedInt32s fixed-length API but can be convenient to save space.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public sealed class PackedDataInput
Constructors
PackedDataInput(DataInput)
Create a new instance that wraps in
.
Declaration
public PackedDataInput(DataInput @in)
Parameters
Type | Name | Description |
---|---|---|
DataInput | in |
See Also
Methods
ReadInt64(int)
Read the next long using exactly bitsPerValue
bits.
Declaration
public long ReadInt64(int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
int | bitsPerValue |
Returns
Type | Description |
---|---|
long |
See Also
SkipToNextByte()
If there are pending bits (at most 7), they will be ignored and the next value will be read starting at the next byte.
Declaration
public void SkipToNextByte()