Class DecompressedBlock
Inheritance
DecompressedBlock
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
|
Improve this Doc
View Source
DecompressedBlock(int, Memory<byte>, CompressionMethod, int)
Declaration
public DecompressedBlock(int blockIndex, Memory<byte> bytes, CompressionMethod method, int compressionLevel)
Parameters
Fields
|
Improve this Doc
View Source
DeviceId
Declaration
Field Value
|
Improve this Doc
View Source
_length
Declaration
public volatile int _length
Field Value
Properties
|
Improve this Doc
View Source
BlockIndex
Declaration
public int BlockIndex { get; }
Property Value
|
Improve this Doc
View Source
CompressionLevel
Declaration
public int CompressionLevel { get; }
Property Value
|
Improve this Doc
View Source
CompressionMethod
Declaration
public CompressionMethod CompressionMethod { get; }
Property Value
|
Improve this Doc
View Source
IsFull
Declaration
public bool IsFull { get; }
Property Value
|
Improve this Doc
View Source
LastAccessTicks
Declaration
public long LastAccessTicks { get; set; }
Property Value
|
Improve this Doc
View Source
Length
Declaration
public int Length { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Append(ReadOnlySpan<byte>)
Declaration
public int Append(ReadOnlySpan<byte> data)
Parameters
Returns
|
Improve this Doc
View Source
Compress()
Declaration
public Memory<byte> Compress()
Returns
|
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
Returns
|
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
|
Improve this Doc
View Source
TrimRight(long)
Declaration
public int TrimRight(long length)
Parameters
Type |
Name |
Description |
long |
length |
|
Returns