CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
48 lines
1.9 KiB
C
48 lines
1.9 KiB
C
/* inflate9.h -- internal inflate state definition
|
|
* Copyright (C) 1995-2003 Mark Adler
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
*/
|
|
|
|
/* WARNING: this file should *not* be used by applications. It is
|
|
part of the implementation of the compression library and is
|
|
subject to change. Applications should only use zlib.h.
|
|
*/
|
|
|
|
/* Possible inflate modes between inflate() calls */
|
|
typedef enum {
|
|
TYPE, /* i: waiting for type bits, including last-flag bit */
|
|
STORED, /* i: waiting for stored size (length and complement) */
|
|
TABLE, /* i: waiting for dynamic block table lengths */
|
|
LEN, /* i: waiting for length/lit code */
|
|
DONE, /* finished check, done -- remain here until reset */
|
|
BAD /* got a data error -- remain here until reset */
|
|
} inflate_mode;
|
|
|
|
/*
|
|
State transitions between above modes -
|
|
|
|
(most modes can go to the BAD mode -- not shown for clarity)
|
|
|
|
Read deflate blocks:
|
|
TYPE -> STORED or TABLE or LEN or DONE
|
|
STORED -> TYPE
|
|
TABLE -> LENLENS -> CODELENS -> LEN
|
|
Read deflate codes:
|
|
LEN -> LEN or TYPE
|
|
*/
|
|
|
|
/* state maintained between inflate() calls. Approximately 7K bytes. */
|
|
struct inflate_state {
|
|
/* sliding window */
|
|
unsigned char FAR *window; /* allocated sliding window, if needed */
|
|
/* dynamic table building */
|
|
unsigned ncode; /* number of code length code lengths */
|
|
unsigned nlen; /* number of length code lengths */
|
|
unsigned ndist; /* number of distance code lengths */
|
|
unsigned have; /* number of code lengths in lens[] */
|
|
code FAR *next; /* next available space in codes[] */
|
|
unsigned short lens[320]; /* temporary storage for code lengths */
|
|
unsigned short work[288]; /* work area for code table building */
|
|
code codes[ENOUGH]; /* space for code tables */
|
|
};
|