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.
Inheritance
System.Object
PackedDataInput
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public sealed class PackedDataInput
Constructors
| Improve this Doc View SourcePackedDataInput(DataInput)
Create a new instance that wraps in
.
Declaration
public PackedDataInput(DataInput in)
Parameters
Type | Name | Description |
---|---|---|
DataInput | in |
Methods
| Improve this Doc View SourceReadInt64(Int32)
Read the next System.Int64 using exactly bitsPerValue
bits.
NOTE: This was readLong() in Lucene.
Declaration
public long ReadInt64(int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bitsPerValue |
Returns
Type | Description |
---|---|
System.Int64 |
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()