decodePic {RMSNumpress}R Documentation

decodePic

Description

Decodes data encoded by encodePic

result vector guaranteed to be shorter of equal to |data| * 2

Usage

decodePic(data)

Arguments

data

pointer to array of bytes to be decoded (need memorycont. repr.)

Details

Note that this method may throw a const char* if it deems the input data to be corrupt, i.e. that the last encoded int does not use the last byte in the data. In addition the last encoded int need to use either the last halfbyte, or the second last followed by a 0x0 halfbyte.

Value

the number of decoded doubles

See Also

[encodePic]


[Package RMSNumpress version 1.0.1 Index]