Interface IH5Dataset
- Namespace
- PureHDF
- Assembly
- PureHDF.dll
An HDF5 dataset.
public interface IH5Dataset : IH5Object
- Inherited Members
Properties
FillValue
Gets the fill value.
IH5FillValue FillValue { get; }
Property Value
Layout
Gets the data layout.
IH5DataLayout Layout { get; }
Property Value
Space
Gets the data space.
IH5Dataspace Space { get; }
Property Value
Type
Gets the data type.
IH5DataType Type { get; }
Property Value
Methods
ReadAsync<T>(Selection?, Selection?, ulong[]?, CancellationToken)
Reads the data asynchronously.
Task<T> ReadAsync<T>(Selection? fileSelection = null, Selection? memorySelection = null, ulong[]? memoryDims = null, CancellationToken cancellationToken = default)
Parameters
fileSelectionSelectionThe selection within the source HDF5 dataset.
memorySelectionSelectionThe selection within the target memory.
memoryDimsulong[]The dimensions of the target memory buffer.
cancellationTokenCancellationTokenA token to cancel the current operation.
Returns
- Task<T>
A task which returns the read data as array of
T.
Type Parameters
TThe type of the data to read.
ReadAsync<T>(T, Selection?, Selection?, ulong[]?, CancellationToken)
Reads the data asynchronously into the provided buffer.
Task ReadAsync<T>(T buffer, Selection? fileSelection = null, Selection? memorySelection = null, ulong[]? memoryDims = null, CancellationToken cancellationToken = default)
Parameters
bufferTThe buffer to read the data into.
fileSelectionSelectionThe selection within the source HDF5 dataset.
memorySelectionSelectionThe selection within the target memory.
memoryDimsulong[]The dimensions of the target memory buffer.
cancellationTokenCancellationTokenA token to cancel the current operation.
Returns
Type Parameters
TThe type of the data to read.
Read<T>(Selection?, Selection?, ulong[]?)
Reads the data.
T Read<T>(Selection? fileSelection = null, Selection? memorySelection = null, ulong[]? memoryDims = null)
Parameters
fileSelectionSelectionThe selection within the source HDF5 dataset.
memorySelectionSelectionThe selection within the destination memory.
memoryDimsulong[]The dimensions of the destination memory buffer.
Returns
- T
The read data as array of
T.
Type Parameters
TThe type of the data to read.
Read<T>(T, Selection?, Selection?, ulong[]?)
Reads the data into the provided buffer.
void Read<T>(T buffer, Selection? fileSelection = null, Selection? memorySelection = null, ulong[]? memoryDims = null)
Parameters
bufferTThe buffer to read the data into.
fileSelectionSelectionThe selection within the source HDF5 dataset.
memorySelectionSelectionThe selection within the destination memory.
memoryDimsulong[]The dimensions of the destination memory buffer.
Type Parameters
TThe type of the data to read.