libdragon
Loading...
Searching...
No Matches
Macros | Functions
shrinkler_dec_internal.h File Reference

Go to the source code of this file.

Macros

#define DECOMPRESS_SHRINKLER_FULL_USE_ASM   0
 Set to 0 to disable assembly implementation of the full decoder.
 
#define DECOMPRESS_SHRINKLER_STATE_SIZE   512
 Size of the Shrinkler decompressor state structure, in bytes.
 

Functions

void * decompress_shrinkler_full (const char *fn, int fd, size_t cmp_size, size_t size)
 Decompress a full Shrinkler-compressed file into a buffer.
 

Detailed Description

Author
Giovanni Bajo giova.nosp@m.nnib.nosp@m.ajo@g.nosp@m.mail.nosp@m..com

Function Documentation

◆ decompress_shrinkler_full()

void * decompress_shrinkler_full ( const char *  fn,
int  fd,
size_t  cmp_size,
size_t  size 
)

Decompress a full Shrinkler-compressed file into a buffer.

Parameters
fnFilename of the file to decompress
fdFile descriptor to read compressed data from.
cmp_sizeSize of the compressed data.
sizeSize of the decompressed data.
Returns
Newly-allocated buffer with decompressed contents