Class ByteBlockPool.DirectTrackingAllocator
A simple ByteBlockPool.Allocator that never recycles, but tracks how much total RAM is in use.
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 DirectTrackingAllocator : ByteBlockPool.Allocator
Constructors
| Improve this Doc View SourceDirectTrackingAllocator(Counter)
Declaration
public DirectTrackingAllocator(Counter bytesUsed)
Parameters
Type | Name | Description |
---|---|---|
Counter | bytesUsed |
DirectTrackingAllocator(Int32, Counter)
Declaration
public DirectTrackingAllocator(int blockSize, Counter bytesUsed)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | blockSize | |
Counter | bytesUsed |
Methods
| Improve this Doc View SourceGetByteBlock()
Declaration
public override byte[] GetByteBlock()
Returns
Type | Description |
---|---|
System.Byte[] |
Overrides
| Improve this Doc View SourceRecycleByteBlocks(Byte[][], Int32, Int32)
Declaration
public override void RecycleByteBlocks(byte[][] blocks, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[][] | blocks | |
System.Int32 | start | |
System.Int32 | end |