Пример #1
0
static unsigned char* husDecompressData(unsigned char* input, int compressedInputLength, int decompressedContentLength)
{
    unsigned char* decompressedData = (unsigned char*)malloc(sizeof(unsigned char)*decompressedContentLength);
    if(!decompressedData) return 0;
    husExpand((unsigned char*) input, decompressedData, compressedInputLength, 10);
    return decompressedData;
}
Пример #2
0
static unsigned char* vipDecompressData(unsigned char* input, int compressedInputLength, int decompressedContentLength)
{
    unsigned char* decompressedData = (unsigned char*)malloc(decompressedContentLength);
    if(!decompressedData)
    {
        embLog_error("format-vip.c vipDecompressData(), cannot allocate memory for decompressedData\n");
        return 0;
    }
    husExpand((unsigned char*)input, decompressedData, compressedInputLength, 10);
    return decompressedData;
}
Пример #3
0
unsigned char* DecompressData(unsigned char* input, int inputLength, int decompressedContentLength)
{
    unsigned char* decompressedData = (unsigned char*)malloc(decompressedContentLength);
    husExpand((unsigned char*)input, decompressedData, inputLength, 10);
    return decompressedData;
}