Search Results for

    Show / Hide Table of Contents

    Class DecompressedBlock

    Inheritance
    object
    DecompressedBlock
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Tenray.ZoneTree.Segments.Block
    Assembly: ZoneTree.dll
    Syntax
    public sealed class DecompressedBlock

    Constructors

    | Improve this Doc View Source

    DecompressedBlock(int, int, CompressionMethod, int)

    Declaration
    public DecompressedBlock(int blockIndex, int blockSize, CompressionMethod compressionMethod, int compressionLevel)
    Parameters
    Type Name Description
    int blockIndex
    int blockSize
    CompressionMethod compressionMethod
    int compressionLevel
    | Improve this Doc View Source

    DecompressedBlock(int, Memory<byte>, CompressionMethod, int)

    Declaration
    public DecompressedBlock(int blockIndex, Memory<byte> bytes, CompressionMethod method, int compressionLevel)
    Parameters
    Type Name Description
    int blockIndex
    Memory<byte> bytes
    CompressionMethod method
    int compressionLevel

    Fields

    | Improve this Doc View Source

    DeviceId

    Declaration
    public int DeviceId
    Field Value
    Type Description
    int
    | Improve this Doc View Source

    _length

    Declaration
    public volatile int _length
    Field Value
    Type Description
    int

    Properties

    | Improve this Doc View Source

    BlockIndex

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

    CompressionLevel

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

    CompressionMethod

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

    IsFull

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

    LastAccessTicks

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

    Length

    Declaration
    public int Length { get; set; }
    Property Value
    Type Description
    int

    Methods

    | Improve this Doc View Source

    Append(ReadOnlySpan<byte>)

    Declaration
    public int Append(ReadOnlySpan<byte> data)
    Parameters
    Type Name Description
    ReadOnlySpan<byte> data
    Returns
    Type Description
    int
    | Improve this Doc View Source

    Compress()

    Declaration
    public Memory<byte> Compress()
    Returns
    Type Description
    Memory<byte>
    | Improve this Doc View Source

    FromCompressed(int, Memory<byte>, CompressionMethod, int, int)

    Declaration
    public static DecompressedBlock FromCompressed(int blockIndex, Memory<byte> compressedBytes, CompressionMethod method, int compressionLevel, int decompressedLength)
    Parameters
    Type Name Description
    int blockIndex
    Memory<byte> compressedBytes
    CompressionMethod method
    int compressionLevel
    int decompressedLength
    Returns
    Type Description
    DecompressedBlock
    | Improve this Doc View Source

    GetBytes(int, int)

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

    TrimRight(long)

    Declaration
    public int TrimRight(long length)
    Parameters
    Type Name Description
    long length
    Returns
    Type Description
    int
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io