Search Results for

    Show / Hide Table of Contents

    Interface IRandomAccessDevice

    Inherited Members
    IDisposable.Dispose()
    Namespace: Tenray.ZoneTree.Segments.RandomAccess
    Assembly: ZoneTree.dll
    Syntax
    public interface IRandomAccessDevice : IDisposable

    Properties

    | Improve this Doc View Source

    Length

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

    ReadBufferCount

    Returns read buffer count.

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

    SegmentId

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

    Writable

    Declaration
    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
    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
    void ClearContent()
    | Improve this Doc View Source

    Close()

    Declaration
    void Close()
    | Improve this Doc View Source

    Delete()

    Declaration
    void Delete()
    | Improve this Doc View Source

    GetBytes(long, int, SingleBlockPin)

    Declaration
    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
    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
    void SealDevice()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io