Class DelegateSelection
A selection which uses a delegate to get the information about how to walk through the data.
Namespace: HDF5.NET
Assembly: HDF5.NET.dll
Syntax
public class DelegateSelection : Selection
Constructors
| Improve this Doc View SourceDelegateSelection(UInt64, Func<UInt64[], IEnumerable<Step>>)
Initializes a new instance of the DelegateSelection instance.
Declaration
public DelegateSelection(ulong totalElementCount, Func<ulong[], IEnumerable<Step>> walker)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | totalElementCount | The total number of elements which is used to preallocate the returned buffer. |
Func<System.UInt64[], IEnumerable<Step>> | walker | The user-defined walker delegate. |
Properties
| Improve this Doc View SourceTotalElementCount
Gets the total number of elements which is used to preallocate the returned buffer.
Declaration
public override ulong TotalElementCount { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Overrides
Methods
| Improve this Doc View SourceWalk(UInt64[])
The walk function is used to walk through the dataset and select the requested data.
Declaration
public override IEnumerable<Step> Walk(ulong[] limits)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64[] | limits | The dataset dimensions. |
Returns
Type | Description |
---|---|
IEnumerable<Step> | An enumerable which provides a sequence of steps to select the requested data. |