Class Int32BlockPool.SliceWriter
A Int32Block
This is a Lucene.NET INTERNAL API, use at your own risk
Inheritance
System.Object
Int32BlockPool.SliceWriter
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
Assembly: Lucene.Net.dll
Syntax
public class SliceWriter
Constructors
| Improve this Doc View SourceSliceWriter(Int32BlockPool)
Declaration
public SliceWriter(Int32BlockPool pool)
Parameters
Type | Name | Description |
---|---|---|
Int32Block |
pool |
Properties
| Improve this Doc View SourceCurrentOffset
Returns the offset of the currently written slice. The returned value
should be used as the end offset to initialize a Int32Block
Declaration
public virtual int CurrentOffset { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceReset(Int32)
Declaration
public virtual void Reset(int sliceOffset)
Parameters
Type | Name | Description |
---|---|---|
System. |
sliceOffset |
StartNewSlice()
Starts a new slice and returns the start offset. The returned value
should be used as the start offset to initialize a Int32Block
Declaration
public virtual int StartNewSlice()
Returns
Type | Description |
---|---|
System. |
WriteInt32(Int32)
Writes the given value into the slice and resizes the slice if needed
NOTE: This was writeInt() in Lucene
Declaration
public virtual void WriteInt32(int value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value |