Definition at line 384 of file mszipd.c.
386 register unsigned int bit_buffer;
387 register int bits_left;
388 unsigned char *i_ptr, *i_end;
398 if ((
off_t)
i > out_bytes)
i = (
int) out_bytes;
400 if (
zip->sys->write(
zip->output,
zip->o_ptr,
i) !=
i) {
409 while (out_bytes > 0) {
421 }
while (
state != 2);
424 zip->window_posn = 0;
425 zip->bytes_output = 0;
428 D((
"inflate error %d",
error))
429 if (
zip->repair_mode) {
431 if (
zip->bytes_output == 0 &&
zip->window_posn > 0) {
432 zip->flush_window(
zip,
zip->window_posn);
434 zip->sys->message(
NULL,
"MSZIP error, %u bytes of data lost.",
437 zip->window[
i] =
'\0';
445 zip->o_ptr = &
zip->window[0];
446 zip->o_end = &
zip->o_ptr[
zip->bytes_output];
449 i = (out_bytes < (
off_t)
zip->bytes_output) ?
450 (
int)out_bytes :
zip->bytes_output;
463 D((
"bytes left to output"))
void error(const char *msg)
if(dbg->bits==RZ_SYS_BITS_64)
References mszipd_stream::bit_buffer, mszipd_stream::bits_left, D, zip::error, error(), i, mszipd_stream::i_end, mszipd_stream::i_ptr, if(), inflate(), int, MSPACK_ERR_ARGS, MSPACK_ERR_DECRUNCH, MSPACK_ERR_OK, MSPACK_ERR_WRITE, MSZIP_FRAME_SIZE, NULL, READ_BITS, REMOVE_BITS, RESTORE_BITS, and STORE_BITS.