Interface IRandomAccessDevice
Assembly: ZoneTree.dll
Syntax
public interface IRandomAccessDevice : IDisposable
Properties
|
Improve this Doc
View Source
Length
Declaration
Property Value
|
Improve this Doc
View Source
ReadBufferCount
Returns read buffer count.
Declaration
int ReadBufferCount { get; }
Property Value
|
Improve this Doc
View Source
SegmentId
Declaration
Property Value
|
Improve this Doc
View Source
Writable
Declaration
Property Value
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
Returns
Type |
Description |
long |
Position of the bytes.
|
|
Improve this Doc
View Source
ClearContent()
Declaration
|
Improve this Doc
View Source
Close()
Declaration
|
Improve this Doc
View Source
Delete()
Declaration
|
Improve this Doc
View Source
GetBytes(long, int, SingleBlockPin)
Declaration
Memory<byte> GetBytes(long offset, int length, SingleBlockPin blockPin = null)
Parameters
Returns
|
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