Parent topic:MPLAB® Harmony Crypto Library
int CRYPT_HUFFMAN_DeCompress(
unsigned char* out,
unsigned int outSz,
const unsigned char* in,
unsigned int inSz
);
This function decompresses a block of data using Huffman encoding.
None.
Parameters | Description |
---|---|
out | Pointer to destination buffer. |
outSz | Size of destination buffer. |
in | Pointer to source buffer to decompress. |
inSz | Size of source buffer to decompress. |
-
negative - Error code.
-
positive - Bytes stored in the out buffer.
Output buffer must be large enough to hold the contents of the operation.
unsigned char cBuffer[1024];
unsigned char dBuffer[1024];
int ret
ret = CRYPT_HUFFMAN_DeCompress(dBuffer, sizeof(dBuffer), cBuffer, msglen);