MSNumpressFSharp


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: 
let decodedDataPic: float[] = Array.zeroCreate 100

let decodePic = MSNumpressFSharp.Decode.decodePic (byteArrayPic, encodePic, decodedDataPic)

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: 
let decodedDataLin: float[] = Array.zeroCreate 100

let decodeLin = MSNumpressFSharp.Decode.decodeLinear (byteArrayLin, encodeLin, decodedDataLin)

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: 
let decodedDataSlof: float[] = Array.zeroCreate 100

let decodeLin = MSNumpressFSharp.Decode.decodeLinear (byteArraySlof, encodeSlof, decodedDataSlof)

decodedDataSlof now contains the decoded floats.

namespace MSNumpressFSharp
val decodedDataPic : float []
Multiple items
val float : value:'T -> float (requires member op_Explicit)

--------------------
type float = System.Double

--------------------
type float<'Measure> = float
module Array

from Microsoft.FSharp.Collections
val zeroCreate : count:int -> 'T []
val decodePic : int
module Decode

from MSNumpressFSharp
val decodePic : data:byte [] * dataSize:int * result:double [] -> int
val decodedDataLin : float []
val decodeLin : int
val decodeLinear : data:byte [] * dataSize:int * result:double [] -> int
val decodedDataSlof : float []
Fork me on GitHub