Class TempFileBuffer
Temporary file-based byte buffer.
Implements
Inherited Members
Namespace: Dicom.IO.Buffer
Assembly: cs.temp.dll.dll
Syntax
public sealed class TempFileBuffer : IByteBuffer
Constructors
TempFileBuffer(Byte[])
Initializes a TempFileBuffer object.
Declaration
public TempFileBuffer(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | Byte array subject to buffering. |
Properties
Data
Gets the data.
Declaration
public byte[] Data { get; }
Property Value
Type | Description |
---|---|
Byte[] |
IsMemory
Gets whether data is buffered in memory or not.
Declaration
public bool IsMemory { get; }
Property Value
Type | Description |
---|---|
Boolean |
Size
Gets the size of the buffered data.
Declaration
public long Size { get; }
Property Value
Type | Description |
---|---|
Int64 |
Methods
GetByteRange(Int64, Int32)
Gets a subset of the data.
Declaration
public byte[] GetByteRange(long offset, int count)
Parameters
Type | Name | Description |
---|---|---|
Int64 | offset | Offset from beginning of data array. |
Int32 | count | Number of bytes to return. |
Returns
Type | Description |
---|---|
Byte[] | Requested sub-range of the |