Class DeflateFilter
Deflate filter based on ZLibStream.
public class DeflateFilter : IH5Filter
- Inheritance
-
DeflateFilter
- Implements
Constructors
DeflateFilter()
public DeflateFilter()
Fields
COMPRESSION_LEVEL
The compression level options key. The compression level must be one of [-1, 0, 1, 9] and the default is -1.
public const string COMPRESSION_LEVEL = "compression-level"
Field Value
Id
The Deflate filter identifier.
public const ushort Id = 1
Field Value
Properties
FilterId
The filter identifier.
public ushort FilterId { get; }
Property Value
Name
The filter name.
public string Name { get; }
Property Value
Methods
Filter(FilterInfo)
The filter function.
public Memory<byte> Filter(FilterInfo info)
Parameters
infoFilterInfoAdditional information for the filter process.
Returns
GetParameters(uint[], uint, Dictionary<string, object>?)
Returns the filter parameters being stored in the HDF5 file and which will be provided to the filter function. This method is only required for the PureHDF write API.
public uint[] GetParameters(uint[] chunkDimensions, uint typeSize, Dictionary<string, object>? options)
Parameters
chunkDimensionsuint[]The chunk dimensions.
typeSizeuintThe size of the data type.
optionsDictionary<string, object>The user defined map of filter options.
Returns
- uint[]
The filter parameters.