Class Int32BlockPool.SliceReader
A Int32BlockPool.SliceReader that can read int slices written by a Int32BlockPool.SliceWriter.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public sealed class Int32BlockPool.SliceReader
Constructors
SliceReader(Int32BlockPool)
Creates a new Int32BlockPool.SliceReader on the given pool.
Declaration
public SliceReader(Int32BlockPool pool)
Parameters
Type | Name | Description |
---|---|---|
Int32BlockPool | pool |
Properties
IsEndOfSlice
Returns true
if the current slice is fully read. If this
method returns true
ReadInt32() should not
be called again on this slice.
Declaration
public bool IsEndOfSlice { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
ReadInt32()
Reads the next int from the current slice and returns it.
NOTE: This was readInt() in LuceneDeclaration
public int ReadInt32()
Returns
Type | Description |
---|---|
int |
See Also
Reset(int, int)
Resets the reader to a slice give the slices absolute start and end offset in the pool.
Declaration
public void Reset(int startOffset, int endOffset)
Parameters
Type | Name | Description |
---|---|---|
int | startOffset | |
int | endOffset |