Interface PackedInt32s.IDecoder
A decoder for packed integers.
Namespace: Lucene.Net.Util.Packed
Assembly: Lucene.Net.dll
Syntax
public interface IDecoder
Properties
| Improve this Doc View SourceByteBlockCount
The minimum number of
Declaration
int ByteBlockCount { get; }
Property Value
Type | Description |
---|---|
System. |
ByteValueCount
The number of values that can be stored in Byte
Declaration
int ByteValueCount { get; }
Property Value
Type | Description |
---|---|
System. |
Int64BlockCount
The minimum number of
NOTE: This was longBlockCount() in Lucene.
Declaration
int Int64BlockCount { get; }
Property Value
Type | Description |
---|---|
System. |
Int64ValueCount
The number of values that can be stored in Int64Block
NOTE: This was longValueCount() in Lucene.
Declaration
int Int64ValueCount { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceDecode(Byte[], Int32, Int32[], Int32, Int32)
Read 8 * iterations * BlockCount
blocks from blocks
,
decode them and write iterations * ValueCount
values into
values
.
Declaration
void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
Parameters
Type | Name | Description |
---|---|---|
System. |
blocks | The long blocks that hold packed integer values. |
System. |
blocksOffset | The offset where to start reading blocks. |
System. |
values | The values buffer. |
System. |
valuesOffset | The offset where to start writing values. |
System. |
iterations | Controls how much data to decode. |
Decode(Byte[], Int32, Int64[], Int32, Int32)
Read 8 * iterations * BlockCount
blocks from blocks
,
decode them and write iterations * ValueCount
values into
values
.
Declaration
void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
Parameters
Type | Name | Description |
---|---|---|
System. |
blocks | The long blocks that hold packed integer values. |
System. |
blocksOffset | The offset where to start reading blocks. |
System. |
values | The values buffer. |
System. |
valuesOffset | The offset where to start writing values. |
System. |
iterations | Controls how much data to decode. |
Decode(Int64[], Int32, Int32[], Int32, Int32)
Read iterations * BlockCount
blocks from blocks
,
decode them and write iterations * ValueCount
values into
values
.
Declaration
void Decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations)
Parameters
Type | Name | Description |
---|---|---|
System. |
blocks | The long blocks that hold packed integer values. |
System. |
blocksOffset | The offset where to start reading blocks. |
System. |
values | The values buffer. |
System. |
valuesOffset | The offset where to start writing values. |
System. |
iterations | Controls how much data to decode. |
Decode(Int64[], Int32, Int64[], Int32, Int32)
Read iterations * BlockCount
blocks from blocks
,
decode them and write iterations * ValueCount
values into
values
.
Declaration
void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations)
Parameters
Type | Name | Description |
---|---|---|
System. |
blocks | The long blocks that hold packed integer values. |
System. |
blocksOffset | The offset where to start reading blocks. |
System. |
values | The values buffer. |
System. |
valuesOffset | The offset where to start writing values. |
System. |
iterations | Controls how much data to decode. |