Z_DECOMPRESS

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

z_decompress - decompress a Deflate-compressed packet.  

SYNOPSIS

"SYNOPSIS"

int z_decompress (void * arg, unsigned char * ibuf, int isize, unsigned char * obuf, int osize);  

ARGUMENTS

arg
pointer to private state for the decompressor
ibuf
pointer to input (compressed) packet data
isize
length of input packet
obuf
pointer to space for output (decompressed) packet
osize
amount of space available at obuf
 

DESCRIPTION

Because of patent problems, we return DECOMP_ERROR for errors found by inspecting the input data and for system problems, but DECOMP_FATALERROR for any errors which could possibly be said to be being detected ``after'' decompression. For DECOMP_ERROR, we can issue a CCP reset-request; for DECOMP_FATALERROR, we may be infringing a patent of Motorola's if we do, so we take CCP down instead.

Given that the frame has the correct sequence number and a good FCS, errors such as invalid codes in the input most likely indicate a bug, so we return DECOMP_FATALERROR for them in order to turn off compression, even though they are detected by inspecting the input.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:03:02 GMT, October 09, 2005