Important! First read the documentation for Encoding. The output of the encoding function is used in the decoding function.
Numpress Pic
The decodePic function takes the byteArrayPic with the encoded bytes, the output of encodePic, which is the number of encoded bytes and an empty float array with at least as many items as the original array. The function modifies the float array and returns the number of decoded floats.
1: 2: 3: |
|
decodedDataPic now contains the decoded floats.
NumpressLin
The decodeLinear function takes the byteArrayLin with the encoded bytes, the output of encodeLin, which is the number of encoded bytes and an empty float array with at least as many items as the original array. The function modifies the float array and returns the number of decoded floats.
1: 2: 3: |
|
decodedDataLin now contains the decoded floats.
NumpressSlof
The decodeSlof function takes the byteArraySlof with the encoded bytes, the output of encodeLin, which is the number of encoded bytes and an empty float array with at least as many items as the original array. The function modifies the float array and returns the number of decoded floats.
1: 2: 3: |
|
decodedDataSlof now contains the decoded floats.
val float : value:'T -> float (requires member op_Explicit)
--------------------
type float = System.Double
--------------------
type float<'Measure> = float
from Microsoft.FSharp.Collections
from MSNumpressFSharp