Show / Hide Table of Contents

    Class ByteBlockPool.DirectTrackingAllocator

    A simple ByteBlockPool.Allocator that never recycles, but tracks how much total RAM is in use.

    Inheritance
    System.Object
    ByteBlockPool.Allocator
    ByteBlockPool.DirectTrackingAllocator
    Inherited Members
    ByteBlockPool.Allocator.m_blockSize
    ByteBlockPool.Allocator.RecycleByteBlocks(IList<Byte[]>)
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public class DirectTrackingAllocator : ByteBlockPool.Allocator

    Constructors

    | Improve this Doc View Source

    DirectTrackingAllocator(Counter)

    Declaration
    public DirectTrackingAllocator(Counter bytesUsed)
    Parameters
    Type Name Description
    Counter bytesUsed
    | Improve this Doc View Source

    DirectTrackingAllocator(Int32, Counter)

    Declaration
    public DirectTrackingAllocator(int blockSize, Counter bytesUsed)
    Parameters
    Type Name Description
    System.Int32 blockSize
    Counter bytesUsed

    Methods

    | Improve this Doc View Source

    GetByteBlock()

    Declaration
    public override byte[] GetByteBlock()
    Returns
    Type Description
    System.Byte[]
    Overrides
    ByteBlockPool.Allocator.GetByteBlock()
    | Improve this Doc View Source

    RecycleByteBlocks(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
    Overrides
    ByteBlockPool.Allocator.RecycleByteBlocks(Byte[][], Int32, Int32)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)