Class BytesRefHash.DirectBytesStartArray
A simple BytesRefHash.BytesStartArray that tracks memory allocation using a private Counter instance.
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public class BytesRefHash.DirectBytesStartArray : BytesRefHash.BytesStartArray
Constructors
DirectBytesStartArray(int)
A simple BytesRefHash.BytesStartArray that tracks memory allocation using a private Counter instance.
Declaration
public DirectBytesStartArray(int initSize)
Parameters
Type | Name | Description |
---|---|---|
int | initSize |
DirectBytesStartArray(int, Counter)
A simple BytesRefHash.BytesStartArray that tracks memory allocation using a private Counter instance.
Declaration
public DirectBytesStartArray(int initSize, Counter counter)
Parameters
Type | Name | Description |
---|---|---|
int | initSize | |
Counter | counter |
Fields
m_initSize
A simple BytesRefHash.BytesStartArray that tracks memory allocation using a private Counter instance.
Declaration
protected readonly int m_initSize
Field Value
Type | Description |
---|---|
int |
Methods
BytesUsed()
A Counter reference holding the number of bytes used by this BytesRefHash.BytesStartArray. The BytesRefHash uses this reference to track it memory usage.
Declaration
public override Counter BytesUsed()
Returns
Type | Description |
---|---|
Counter | a J2N.Threading.Atomic.AtomicInt64 reference holding the number of bytes used by this BytesRefHash.BytesStartArray. |
Overrides
Clear()
Clears the BytesRefHash.BytesStartArray and returns the cleared instance.
Declaration
public override int[] Clear()
Returns
Type | Description |
---|---|
int[] | The cleared instance, this might be |
Overrides
Grow()
Grows the BytesRefHash.BytesStartArray.
Declaration
public override int[] Grow()
Returns
Type | Description |
---|---|
int[] | The grown array. |
Overrides
Init()
Initializes the BytesRefHash.BytesStartArray. This call will allocate memory.
Declaration
public override int[] Init()
Returns
Type | Description |
---|---|
int[] | The initialized bytes start array. |