Search Results for

    Show / Hide Table of Contents

    Class CompressedFileRandomAccessDevice

    Inheritance
    object
    CompressedFileRandomAccessDevice
    Implements
    IRandomAccessDevice
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Tenray.ZoneTree.Segments.RandomAccess
    Assembly: ZoneTree.dll
    Syntax
    public sealed class CompressedFileRandomAccessDevice : IRandomAccessDevice, IDisposable

    Constructors

    | Improve this Doc View Source

    CompressedFileRandomAccessDevice(ILogger, IFileStreamProvider, long, string, IRandomAccessDeviceManager, string, bool, int, CompressionMethod, int, int)

    Declaration
    public CompressedFileRandomAccessDevice(ILogger logger, IFileStreamProvider fileStreamProvider, long segmentId, string category, IRandomAccessDeviceManager randomDeviceManager, string filePath, bool writable, int compressionBlockSize, CompressionMethod compressionMethod, int compressionLevel, int fileIOBufferSize = 4096)
    Parameters
    Type Name Description
    ILogger logger
    IFileStreamProvider fileStreamProvider
    long segmentId
    string category
    IRandomAccessDeviceManager randomDeviceManager
    string filePath
    bool writable
    int compressionBlockSize
    CompressionMethod compressionMethod
    int compressionLevel
    int fileIOBufferSize

    Properties

    | Improve this Doc View Source

    FilePath

    Declaration
    public string FilePath { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    Length

    Declaration
    public long Length { get; }
    Property Value
    Type Description
    long
    | Improve this Doc View Source

    ReadBufferCount

    Returns read buffer count.

    Declaration
    public int ReadBufferCount { get; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    SegmentId

    Declaration
    public long SegmentId { get; }
    Property Value
    Type Description
    long
    | Improve this Doc View Source

    Writable

    Declaration
    public bool Writable { get; }
    Property Value
    Type Description
    bool

    Methods

    | Improve this Doc View Source

    AppendBytesReturnPosition(Memory<byte>)

    Appends bytes and returns the position of the appended bytes.

    Declaration
    public long AppendBytesReturnPosition(Memory<byte> bytes)
    Parameters
    Type Name Description
    Memory<byte> bytes

    Bytes

    Returns
    Type Description
    long

    Position of the bytes.

    | Improve this Doc View Source

    ClearContent()

    Declaration
    public void ClearContent()
    | Improve this Doc View Source

    Close()

    Declaration
    public void Close()
    | Improve this Doc View Source

    Delete()

    Declaration
    public void Delete()
    | Improve this Doc View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    GetBytes(long, int, SingleBlockPin)

    Declaration
    public Memory<byte> GetBytes(long offset, int length, SingleBlockPin blockPin = null)
    Parameters
    Type Name Description
    long offset
    int length
    SingleBlockPin blockPin
    Returns
    Type Description
    Memory<byte>
    | Improve this Doc View Source

    ReleaseInactiveCachedBuffers(long)

    Releases inactive cached read buffers. The buffers that have not been accessed since given ticks are released.

    Declaration
    public int ReleaseInactiveCachedBuffers(long ticks)
    Parameters
    Type Name Description
    long ticks
    Returns
    Type Description
    int

    Total released read buffer count.

    | Improve this Doc View Source

    SealDevice()

    Seals the device. Sealed devices can not accept new writes and becomes immutable.

    Declaration
    public void SealDevice()

    Implements

    IRandomAccessDevice
    IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io