Class NativeDataset
A native HDF5 dataset.
public class NativeDataset : NativeObject, IH5Dataset, IH5Object
- Inheritance
-
NativeDataset
- Implements
- Inherited Members
Properties
FillValue
Gets the fill value.
public IH5FillValue FillValue { get; }
Property Value
Layout
Gets the data layout.
public IH5DataLayout Layout { get; }
Property Value
Space
Gets the data space.
public IH5Dataspace Space { get; }
Property Value
Type
Gets the data type.
public IH5DataType Type { get; }
Property Value
Methods
ReadAsync<T>(Selection?, Selection?, ulong[]?, CancellationToken)
Reads the data asynchronously.
public 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.
public 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.
public 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>(H5DatasetAccess, Selection?, Selection?, ulong[]?)
Reads the data.
public T Read<T>(H5DatasetAccess datasetAccess, Selection? fileSelection = null, Selection? memorySelection = null, ulong[]? memoryDims = null)
Parameters
datasetAccessH5DatasetAccessThe dataset access properties.
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>(H5DatasetAccess, Span<T>, Selection?, Selection?, ulong[]?)
Reads the data into the provided buffer.
public void Read<T>(H5DatasetAccess datasetAccess, Span<T> buffer, Selection? fileSelection = null, Selection? memorySelection = null, ulong[]? memoryDims = null)
Parameters
datasetAccessH5DatasetAccessThe dataset access properties.
bufferSpan<T>The 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.
Read<T>(H5DatasetAccess, T, Selection?, Selection?, ulong[]?)
Reads the data into the provided buffer.
public void Read<T>(H5DatasetAccess datasetAccess, T buffer, Selection? fileSelection = null, Selection? memorySelection = null, ulong[]? memoryDims = null)
Parameters
datasetAccessH5DatasetAccessThe dataset access properties.
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.
Read<T>(Span<T>, Selection?, Selection?, ulong[]?)
Reads the data into the provided buffer.
public void Read<T>(Span<T> buffer, Selection? fileSelection = null, Selection? memorySelection = null, ulong[]? memoryDims = null)
Parameters
bufferSpan<T>The 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.
Read<T>(T, Selection?, Selection?, ulong[]?)
Reads the data into the provided buffer.
public 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.