SVC_UncompressHuffmanFromDevice

C Specification

#include <nitro/os/common/systemCall.h>

s32 SVC_UncompressHuffmanFromDevice( const void* srcp,
void* destp,
u8* tableBufp,
const MIReadStreamCallbacks *callbackes );

Arguments

srcp Source address of Huffman Compression data
destp Destination address for decompression.
tableBufp Tree table storage buffer (maximum of 512 bytes). When you want to hand off a parameter to the initStream function of a MIReadStreamCallbacks socket, you can do it through this buffer. Note, however, that the initStream function call trace will be written over by the tree table.
callbacks Address of the MIReadStreamCallbacks socket.

Return Values

A value that is more than 0 denotes the decompressed size. A value that is less than 0 denotes an error.

Description

Decompresses Huffman compression data and writes it in 32-bit units to the specified memory. Match the source address src to the 4-byte boundary. When the size of the compressed data is not a multiple of 4, adjust by paring it back using zeros. Compressed data on devices that are not memory mapped can be decompressed directly without using a temporary buffer.

See Also

MI_UncompressHuffman, SVC_UncompressLZ*, SVC_UncompressRL*

Revision History

07/22/2004 Initial Version