Interface IByteBuffer
- Namespace
- FellowOakDicom.IO.Buffer
- Assembly
- fo-dicom.core.dll
Common interface for byte buffers.
public interface IByteBuffer
- Extension Methods
Properties
Data
Gets the data.
byte[] Data { get; }
Property Value
- byte[]
IsMemory
Gets whether data is buffered in memory or not.
bool IsMemory { get; }
Property Value
Size
Gets the size of the buffered data.
long Size { get; }
Property Value
Methods
CopyToStream(Stream)
Copies the contents of this buffer to the provided stream
void CopyToStream(Stream stream)
Parameters
streamStreamA stream that will receive the contents of this buffer
CopyToStreamAsync(Stream, CancellationToken)
Copies the contents of this buffer to the provided stream
Task CopyToStreamAsync(Stream stream, CancellationToken cancellationToken)
Parameters
streamStreamA stream that will receive the contents of this buffer
cancellationTokenCancellationTokenA cancellation token that halts the execution of the copy operation
Returns
GetByteRange(long, int, byte[])
Gets a subset of the data and fills it in the provided output buffer
void GetByteRange(long offset, int count, byte[] output)