This is the semz.decompress Reference Manual, version 1.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Fri Sep 15 04:53:50 2023 GMT+0.
semz.decompress/semz.decompress.asd
semz.decompress/common.lisp
semz.decompress/tables.lisp
semz.decompress/io.lisp
semz.decompress/bits.lisp
semz.decompress/interface.lisp
semz.decompress/huffman.lisp
semz.decompress/deflate.lisp
semz.decompress/adler32.lisp
semz.decompress/zlib.lisp
semz.decompress/crc32.lisp
semz.decompress/gzip.lisp
semz.decompress/bzip2.lisp
The main system appears first, followed by any subsystem dependency.
semz.decompress
A defensive and fast Deflate decompressor in pure CL.
Sebastian Melzer <semz@semelz.de>
Sebastian Melzer <semz@semelz.de>
MIT
1.1.0
alexandria
(system).
trivial-gray-streams
(system).
common.lisp
(file).
tables.lisp
(file).
io.lisp
(file).
bits.lisp
(file).
interface.lisp
(file).
huffman.lisp
(file).
deflate.lisp
(file).
adler32.lisp
(file).
zlib.lisp
(file).
crc32.lisp
(file).
gzip.lisp
(file).
bzip2.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
semz.decompress/semz.decompress.asd
semz.decompress/common.lisp
semz.decompress/tables.lisp
semz.decompress/io.lisp
semz.decompress/bits.lisp
semz.decompress/interface.lisp
semz.decompress/huffman.lisp
semz.decompress/deflate.lisp
semz.decompress/adler32.lisp
semz.decompress/zlib.lisp
semz.decompress/crc32.lisp
semz.decompress/gzip.lisp
semz.decompress/bzip2.lisp
semz.decompress/semz.decompress.asd
semz.decompress
(system).
semz.decompress/common.lisp
semz.decompress
(system).
decompression-error
(condition).
eof
(condition).
%eof
(function).
*default-buffer-size*
(special variable).
*known-formats*
(special variable).
+dummy-buffer+
(constant).
buffer
(type).
byte-source->decompression-state
(generic function).
csvref
(macro).
define-fast-function
(macro).
die
(function).
element-of
(type).
ensure-simple-vector-constant
(function).
index-for
(type).
next-decompressed-chunk
(generic function).
normalize-bounds
(macro).
octet
(type).
onetime-macrolet
(macro).
positions
(function).
reverse-ub32-byte-order
(function).
ub16ref/le
(function).
(setf ub16ref/le)
(function).
ub32ref/le
(function).
(setf ub32ref/le)
(function).
ub64ref/le
(function).
(setf ub64ref/le)
(function).
with-prefixed-names
(macro).
semz.decompress/tables.lisp
common.lisp
(file).
semz.decompress
(system).
+bzip2-crc-table+
(constant).
+bzip2-random-numbers+
(constant).
semz.decompress/io.lisp
common.lisp
(file).
semz.decompress
(system).
array->buffer-stream
(function).
bs-buffer
(reader).
(setf bs-buffer)
(writer).
bs-end
(reader).
(setf bs-end)
(writer).
bs-read-be
(function).
bs-read-byte
(function).
bs-read-le
(function).
bs-read-sequence
(function).
bs-refill-function
(reader).
(setf bs-refill-function)
(writer).
bs-start
(reader).
(setf bs-start)
(writer).
buffer-stream
(structure).
buffer-stream-p
(function).
byte-source
(type).
copy-buffer-stream
(function).
make-buffer-stream
(function).
stream->buffer-stream
(function).
try-refill
(function).
semz.decompress/bits.lisp
common.lisp
(file).
io.lisp
(file).
semz.decompress
(system).
copy-lsb-bit-reader
(function).
copy-msb-bit-reader
(function).
define-bit-reader
(macro).
lbr-bits-left
(reader).
(setf lbr-bits-left)
(writer).
lbr-buffer
(reader).
(setf lbr-buffer)
(writer).
lbr-byte-source-usable-p
(function).
lbr-dump-bits
(function).
lbr-ensure-bits
(function).
lbr-flush-byte
(function).
lbr-peek-bits
(function).
lbr-read-bits
(function).
lbr-source
(reader).
(setf lbr-source)
(writer).
lsb-bit-reader
(structure).
lsb-bit-reader-p
(function).
make-lsb-bit-reader
(function).
make-msb-bit-reader
(function).
mbr-bits-left
(reader).
(setf mbr-bits-left)
(writer).
mbr-buffer
(reader).
(setf mbr-buffer)
(writer).
mbr-byte-source-usable-p
(function).
mbr-dump-bits
(function).
mbr-ensure-bits
(function).
mbr-flush-byte
(function).
mbr-peek-bits
(function).
mbr-read-bits
(function).
mbr-source
(reader).
(setf mbr-source)
(writer).
msb-bit-reader
(structure).
msb-bit-reader-p
(function).
semz.decompress/interface.lisp
common.lisp
(file).
io.lisp
(file).
semz.decompress
(system).
decompress
(function).
decompression-stream
(class).
decompression-stream-format
(function).
decompression-stream-header
(function).
list-supported-formats
(function).
make-decompression-stream
(function).
stream-element-type
(method).
stream-read-byte
(method).
stream-read-sequence
(method).
decompression-stream-%format
(reader method).
(setf decompression-stream-%format)
(writer method).
decompression-stream-%header
(reader method).
(setf decompression-stream-%header)
(writer method).
decompression-stream-buffer-stream
(reader method).
(setf decompression-stream-buffer-stream)
(writer method).
decompression-stream-eof
(reader method).
(setf decompression-stream-eof)
(writer method).
decompression-stream-state
(reader method).
(setf decompression-stream-state)
(writer method).
semz.decompress/huffman.lisp
common.lisp
(file).
bits.lisp
(file).
semz.decompress
(system).
+huffman-max-codelen+
(constant).
+huffman-max-item+
(constant).
+huffman-shift+
(constant).
copy-huffman-tree
(function).
define-huffman-reader-function
(macro).
ht-codelen
(type).
ht-codelen-vector
(type).
ht-entry
(type).
ht-full-read-p
(reader).
(setf ht-full-read-p)
(writer).
ht-item
(type).
ht-max-codelen
(reader).
(setf ht-max-codelen)
(writer).
ht-min-codelen
(reader).
(setf ht-min-codelen)
(writer).
ht-read-be-code
(function).
ht-read-le-code
(function).
ht-table
(reader).
(setf ht-table)
(writer).
huffman-tree
(structure).
huffman-tree-p
(function).
lengths->ht
(function).
make-huffman-tree
(function).
reverse-small-integer
(function).
semz.decompress/deflate.lisp
common.lisp
(file).
io.lisp
(file).
bits.lisp
(file).
huffman.lisp
(file).
semz.decompress
(system).
*fixed-dhi-for-final-block*
(special variable).
*fixed-dhi-for-nonfinal-block*
(special variable).
+deflate-dist-bases+
(constant).
+deflate-dist-extra-bits+
(constant).
+deflate-length-bases+
(constant).
+deflate-length-extra-bits+
(constant).
+illegal-deflate-dist-lengths+
(constant).
+largest-deflate-distance+
(constant).
+largest-deflate-expansion+
(constant).
+min-deflate-block-bitsize+
(constant).
base+bits
(function).
byte-source->decompression-state
(method).
decode-huffman-data
(function).
decode-uncompressed-data
(function).
deflate-buffer-fill-threshold
(function).
deflate-huffman-info
(class).
deflate-state
(class).
dhi-codelen-tree
(reader method).
(setf dhi-codelen-tree)
(writer method).
dhi-dist-tree
(reader method).
(setf dhi-dist-tree)
(writer method).
dhi-litlen-tree
(reader method).
(setf dhi-litlen-tree)
(writer method).
dhi-special-mode
(reader method).
(setf dhi-special-mode)
(writer method).
ds-bit-reader
(reader method).
(setf ds-bit-reader)
(writer method).
ds-block-type
(reader method).
(setf ds-block-type)
(writer method).
ds-buffer
(reader method).
(setf ds-buffer)
(writer method).
ds-dhi
(reader method).
(setf ds-dhi)
(writer method).
ds-fill-pointer
(reader method).
(setf ds-fill-pointer)
(writer method).
ds-final-block-p
(reader method).
(setf ds-final-block-p)
(writer method).
ds-uncompressed-remaining-bytes
(reader method).
(setf ds-uncompressed-remaining-bytes)
(writer method).
ds-window-size
(reader method).
(setf ds-window-size)
(writer method).
find-singular-one
(function).
lengths->dhi
(function).
lengths->dist-ht
(function).
next-decompressed-chunk
(method).
next-deflate-chunk
(function).
read-dynamic-dhi
(function).
setup-window
(function).
semz.decompress/adler32.lisp
common.lisp
(file).
semz.decompress
(system).
adler-32
(function).
finish-adler-32
(function).
start-adler-32
(function).
update-adler-32
(function).
semz.decompress/zlib.lisp
common.lisp
(file).
io.lisp
(file).
bits.lisp
(file).
deflate.lisp
(file).
adler32.lisp
(file).
semz.decompress
(system).
make-simple-zlib-dictionary
(function).
unrecognized-zlib-dictionary
(condition).
unrecognized-zlib-dictionary-checksum
(reader method).
byte-source->decompression-state
(method).
next-decompressed-chunk
(method).
zlib-state
(class).
zs-checksum-state
(reader method).
(setf zs-checksum-state)
(writer method).
zs-deflate-state
(reader method).
(setf zs-deflate-state)
(writer method).
semz.decompress/crc32.lisp
common.lisp
(file).
semz.decompress
(system).
+crc-32-table+
(constant).
crc-32
(function).
define-basic-update-crc
(macro).
define-fast-update-crc
(macro).
define-update-crc
(macro).
finish-crc-32
(function).
start-crc-32
(function).
update-crc-32
(function).
semz.decompress/gzip.lisp
common.lisp
(file).
io.lisp
(file).
bits.lisp
(file).
deflate.lisp
(file).
crc32.lisp
(file).
semz.decompress
(system).
byte-source->decompression-state
(method).
gs-crc32
(reader method).
(setf gs-crc32)
(writer method).
gs-deflate-state
(reader method).
(setf gs-deflate-state)
(writer method).
gs-size
(reader method).
(setf gs-size)
(writer method).
gzip-extra-fields-consistent-p
(function).
gzip-state
(class).
next-decompressed-chunk
(method).
parse-gzip-extra-fields
(function).
semz.decompress/bzip2.lisp
common.lisp
(file).
bits.lisp
(file).
huffman.lisp
(file).
crc32.lisp
(file).
tables.lisp
(file).
semz.decompress
(system).
*bzip2-selector-tree*
(special variable).
*bzip2-trees-tree*
(special variable).
+bzip2-ab-bound+
(constant).
+bzip2-max-block-size+
(constant).
+bzip2-preprocessed-crc-table+
(constant).
+bzip2-trailing-bits+
(constant).
bbi-crc
(reader).
(setf bbi-crc)
(writer).
bbi-expected-crc
(reader).
(setf bbi-expected-crc)
(writer).
bbi-origin-pointer
(reader).
(setf bbi-origin-pointer)
(writer).
bbi-randomizedp
(reader).
(setf bbi-randomizedp)
(writer).
bbi-selectors
(reader).
(setf bbi-selectors)
(writer).
bbi-symbols
(reader).
(setf bbi-symbols)
(writer).
bbi-trees
(reader).
(setf bbi-trees)
(writer).
byte-source->decompression-state
(method).
bz-bit-reader
(reader method).
(setf bz-bit-reader)
(writer method).
bz-block-info
(reader method).
(setf bz-block-info)
(writer method).
bz-block-size
(reader method).
(setf bz-block-size)
(writer method).
bz-bwt-size
(reader method).
(setf bz-bwt-size)
(writer method).
bz-output-buffer
(reader method).
(setf bz-output-buffer)
(writer method).
bz-post-bwt-buffer
(reader method).
(setf bz-post-bwt-buffer)
(writer method).
bz-pre-bwt-buffer
(reader method).
(setf bz-pre-bwt-buffer)
(writer method).
bz-rle1-state
(reader method).
(setf bz-rle1-state)
(writer method).
bz-state
(reader method).
(setf bz-state)
(writer method).
bz-stream-crc
(reader method).
(setf bz-stream-crc)
(writer method).
bz-temp-bwt-buffer
(reader method).
(setf bz-temp-bwt-buffer)
(writer method).
bz-trees
(reader method).
(setf bz-trees)
(writer method).
bzip2-block-index
(type).
bzip2-block-info
(structure).
bzip2-block-info-p
(function).
bzip2-crc
(function).
bzip2-rle1-state
(structure).
bzip2-rle1-state-p
(function).
bzip2-state
(class).
copy-bzip2-block-info
(function).
copy-bzip2-rle1-state
(function).
decode-bzip2-bwt
(function).
decode-bzip2-huffman+rle2
(function).
decode-bzip2-mtf-in-place
(function).
decode-bzip2-rle1
(function).
derandomize-bzip2-block
(function).
finish-bzip2-crc
(function).
finish-bzip2-stream-crc
(function).
make-bzip2-block-info
(function).
make-bzip2-rle1-state
(function).
next-decompressed-chunk
(method).
parse-bzip2-block-header
(function).
read-bzip2-selectors
(function).
read-bzip2-trees
(function).
rle1-last-b
(reader).
(setf rle1-last-b)
(writer).
rle1-reps
(reader).
(setf rle1-reps)
(writer).
rle1-src-i
(reader).
(setf rle1-src-i)
(writer).
start-bzip2-crc
(function).
start-bzip2-stream-crc
(function).
update-bzip2-crc
(function).
update-bzip2-stream-crc
(function).
Packages are listed by definition order.
semz.decompress
common-lisp
.
adler-32
(function).
decompress
(function).
decompression-error
(condition).
decompression-stream
(class).
decompression-stream-format
(function).
decompression-stream-header
(function).
eof
(condition).
list-supported-formats
(function).
make-decompression-stream
(function).
make-simple-zlib-dictionary
(function).
unrecognized-zlib-dictionary
(condition).
unrecognized-zlib-dictionary-checksum
(generic reader).
%eof
(function).
*bzip2-selector-tree*
(special variable).
*bzip2-trees-tree*
(special variable).
*default-buffer-size*
(special variable).
*fixed-dhi-for-final-block*
(special variable).
*fixed-dhi-for-nonfinal-block*
(special variable).
*known-formats*
(special variable).
+bzip2-ab-bound+
(constant).
+bzip2-crc-table+
(constant).
+bzip2-max-block-size+
(constant).
+bzip2-preprocessed-crc-table+
(constant).
+bzip2-random-numbers+
(constant).
+bzip2-trailing-bits+
(constant).
+crc-32-table+
(constant).
+deflate-dist-bases+
(constant).
+deflate-dist-extra-bits+
(constant).
+deflate-length-bases+
(constant).
+deflate-length-extra-bits+
(constant).
+dummy-buffer+
(constant).
+huffman-max-codelen+
(constant).
+huffman-max-item+
(constant).
+huffman-shift+
(constant).
+illegal-deflate-dist-lengths+
(constant).
+largest-deflate-distance+
(constant).
+largest-deflate-expansion+
(constant).
+min-deflate-block-bitsize+
(constant).
array->buffer-stream
(function).
base+bits
(function).
bbi-crc
(reader).
(setf bbi-crc)
(writer).
bbi-expected-crc
(reader).
(setf bbi-expected-crc)
(writer).
bbi-origin-pointer
(reader).
(setf bbi-origin-pointer)
(writer).
bbi-randomizedp
(reader).
(setf bbi-randomizedp)
(writer).
bbi-selectors
(reader).
(setf bbi-selectors)
(writer).
bbi-symbols
(reader).
(setf bbi-symbols)
(writer).
bbi-trees
(reader).
(setf bbi-trees)
(writer).
bs-buffer
(reader).
(setf bs-buffer)
(writer).
bs-end
(reader).
(setf bs-end)
(writer).
bs-read-be
(function).
bs-read-byte
(function).
bs-read-le
(function).
bs-read-sequence
(function).
bs-refill-function
(reader).
(setf bs-refill-function)
(writer).
bs-start
(reader).
(setf bs-start)
(writer).
buffer
(type).
buffer-stream
(structure).
buffer-stream-p
(function).
byte-source
(type).
byte-source->decompression-state
(generic function).
bz-bit-reader
(generic reader).
(setf bz-bit-reader)
(generic writer).
bz-block-info
(generic reader).
(setf bz-block-info)
(generic writer).
bz-block-size
(generic reader).
(setf bz-block-size)
(generic writer).
bz-bwt-size
(generic reader).
(setf bz-bwt-size)
(generic writer).
bz-output-buffer
(generic reader).
(setf bz-output-buffer)
(generic writer).
bz-post-bwt-buffer
(generic reader).
(setf bz-post-bwt-buffer)
(generic writer).
bz-pre-bwt-buffer
(generic reader).
(setf bz-pre-bwt-buffer)
(generic writer).
bz-rle1-state
(generic reader).
(setf bz-rle1-state)
(generic writer).
bz-state
(generic reader).
(setf bz-state)
(generic writer).
bz-stream-crc
(generic reader).
(setf bz-stream-crc)
(generic writer).
bz-temp-bwt-buffer
(generic reader).
(setf bz-temp-bwt-buffer)
(generic writer).
bz-trees
(generic reader).
(setf bz-trees)
(generic writer).
bzip2-block-index
(type).
bzip2-block-info
(structure).
bzip2-block-info-p
(function).
bzip2-crc
(function).
bzip2-rle1-state
(structure).
bzip2-rle1-state-p
(function).
bzip2-state
(class).
copy-buffer-stream
(function).
copy-bzip2-block-info
(function).
copy-bzip2-rle1-state
(function).
copy-huffman-tree
(function).
copy-lsb-bit-reader
(function).
copy-msb-bit-reader
(function).
crc-32
(function).
csvref
(macro).
decode-bzip2-bwt
(function).
decode-bzip2-huffman+rle2
(function).
decode-bzip2-mtf-in-place
(function).
decode-bzip2-rle1
(function).
decode-huffman-data
(function).
decode-uncompressed-data
(function).
decompression-stream-%format
(generic reader).
(setf decompression-stream-%format)
(generic writer).
decompression-stream-%header
(generic reader).
(setf decompression-stream-%header)
(generic writer).
decompression-stream-buffer-stream
(generic reader).
(setf decompression-stream-buffer-stream)
(generic writer).
decompression-stream-eof
(generic reader).
(setf decompression-stream-eof)
(generic writer).
decompression-stream-state
(generic reader).
(setf decompression-stream-state)
(generic writer).
define-basic-update-crc
(macro).
define-bit-reader
(macro).
define-fast-function
(macro).
define-fast-update-crc
(macro).
define-huffman-reader-function
(macro).
define-update-crc
(macro).
deflate-buffer-fill-threshold
(function).
deflate-huffman-info
(class).
deflate-state
(class).
derandomize-bzip2-block
(function).
dhi-codelen-tree
(generic reader).
(setf dhi-codelen-tree)
(generic writer).
dhi-dist-tree
(generic reader).
(setf dhi-dist-tree)
(generic writer).
dhi-litlen-tree
(generic reader).
(setf dhi-litlen-tree)
(generic writer).
dhi-special-mode
(generic reader).
(setf dhi-special-mode)
(generic writer).
die
(function).
ds-bit-reader
(generic reader).
(setf ds-bit-reader)
(generic writer).
ds-block-type
(generic reader).
(setf ds-block-type)
(generic writer).
ds-buffer
(generic reader).
(setf ds-buffer)
(generic writer).
ds-dhi
(generic reader).
(setf ds-dhi)
(generic writer).
ds-fill-pointer
(generic reader).
(setf ds-fill-pointer)
(generic writer).
ds-final-block-p
(generic reader).
(setf ds-final-block-p)
(generic writer).
ds-uncompressed-remaining-bytes
(generic reader).
(setf ds-uncompressed-remaining-bytes)
(generic writer).
ds-window-size
(generic reader).
(setf ds-window-size)
(generic writer).
element-of
(type).
ensure-simple-vector-constant
(function).
find-singular-one
(function).
finish-adler-32
(function).
finish-bzip2-crc
(function).
finish-bzip2-stream-crc
(function).
finish-crc-32
(function).
gs-crc32
(generic reader).
(setf gs-crc32)
(generic writer).
gs-deflate-state
(generic reader).
(setf gs-deflate-state)
(generic writer).
gs-size
(generic reader).
(setf gs-size)
(generic writer).
gzip-extra-fields-consistent-p
(function).
gzip-state
(class).
ht-codelen
(type).
ht-codelen-vector
(type).
ht-entry
(type).
ht-full-read-p
(reader).
(setf ht-full-read-p)
(writer).
ht-item
(type).
ht-max-codelen
(reader).
(setf ht-max-codelen)
(writer).
ht-min-codelen
(reader).
(setf ht-min-codelen)
(writer).
ht-read-be-code
(function).
ht-read-le-code
(function).
ht-table
(reader).
(setf ht-table)
(writer).
huffman-tree
(structure).
huffman-tree-p
(function).
index-for
(type).
lbr-bits-left
(reader).
(setf lbr-bits-left)
(writer).
lbr-buffer
(reader).
(setf lbr-buffer)
(writer).
lbr-byte-source-usable-p
(function).
lbr-dump-bits
(function).
lbr-ensure-bits
(function).
lbr-flush-byte
(function).
lbr-peek-bits
(function).
lbr-read-bits
(function).
lbr-source
(reader).
(setf lbr-source)
(writer).
lengths->dhi
(function).
lengths->dist-ht
(function).
lengths->ht
(function).
lsb-bit-reader
(structure).
lsb-bit-reader-p
(function).
make-buffer-stream
(function).
make-bzip2-block-info
(function).
make-bzip2-rle1-state
(function).
make-huffman-tree
(function).
make-lsb-bit-reader
(function).
make-msb-bit-reader
(function).
mbr-bits-left
(reader).
(setf mbr-bits-left)
(writer).
mbr-buffer
(reader).
(setf mbr-buffer)
(writer).
mbr-byte-source-usable-p
(function).
mbr-dump-bits
(function).
mbr-ensure-bits
(function).
mbr-flush-byte
(function).
mbr-peek-bits
(function).
mbr-read-bits
(function).
mbr-source
(reader).
(setf mbr-source)
(writer).
msb-bit-reader
(structure).
msb-bit-reader-p
(function).
next-decompressed-chunk
(generic function).
next-deflate-chunk
(function).
normalize-bounds
(macro).
octet
(type).
onetime-macrolet
(macro).
parse-bzip2-block-header
(function).
parse-gzip-extra-fields
(function).
positions
(function).
read-bzip2-selectors
(function).
read-bzip2-trees
(function).
read-dynamic-dhi
(function).
reverse-small-integer
(function).
reverse-ub32-byte-order
(function).
rle1-last-b
(reader).
(setf rle1-last-b)
(writer).
rle1-reps
(reader).
(setf rle1-reps)
(writer).
rle1-src-i
(reader).
(setf rle1-src-i)
(writer).
setup-window
(function).
start-adler-32
(function).
start-bzip2-crc
(function).
start-bzip2-stream-crc
(function).
start-crc-32
(function).
stream->buffer-stream
(function).
try-refill
(function).
ub16ref/le
(function).
(setf ub16ref/le)
(function).
ub32ref/le
(function).
(setf ub32ref/le)
(function).
ub64ref/le
(function).
(setf ub64ref/le)
(function).
update-adler-32
(function).
update-bzip2-crc
(function).
update-bzip2-stream-crc
(function).
update-crc-32
(function).
with-prefixed-names
(macro).
zlib-state
(class).
zs-checksum-state
(generic reader).
(setf zs-checksum-state)
(generic writer).
zs-deflate-state
(generic reader).
(setf zs-deflate-state)
(generic writer).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Returns the Adler-32 checksum of the given data, in the form s2 * 2^16 + s1.
Returns a fresh octet vector that contains the decompressed form of the
‘format’-compressed data in ‘input’.
‘output-size’, if not ‘nil’, should be the predicted size of the decompressed
data. If correct, this prevents unnecessary copying at the end.
If ‘allow-overreads-p’ is true and ‘input’ is a stream, bytes beyond the end of
the compressed data might end up being read during decompression; enabling this
option tends to significantly improve performance on stream inputs.
This function can take further format-specific options.
Returns the ‘format’ argument used to create ‘stream’.
Returns the header metadata of the data associated to ‘stream’.
Returns a list of symbols that can be used as ‘format’ arguments to ‘make-decompression-stream’ and ‘decompress’ to specify a compression format.
Returns a ‘decompression-stream’ whence the decompressed form of the
‘format’-compressed data in ‘input’ can be read. ‘input’ should not be modified
or read from until ‘decompression-stream’ has reached end of file. If ‘input’ is
a stream, then the caller is responsible for closing it.
Calling this function will read header information from ‘input’, but no decompression will be performed until data is read from ‘decompression-stream’.
If ‘allow-overreads-p’ is true and ‘input’ is a stream, bytes beyond the end of
the compressed data might end up being read during stream creation and
decompression; enabling this option tends to significantly improve performance
on stream inputs.
This function can take further format-specific options.
Returns a function suitable to be passed as a ‘dictionary’ argument for zlib decompression which recognizes every octet vector in the sequence ‘buffers’ and no others. The vectors should not be modified afterwards. An error is signalled if multiple vectors with distinct contents have the same checksum.
Returns the unrecognized checksum that was encountered during zlib decompression, in the form ‘adler-32’ outputs.
unrecognized-zlib-dictionary
)) ¶decompression-stream
)) ¶decompression-stream
)) ¶sb-gray
.
decompression-stream
) sequence start end &key &allow-other-keys) ¶trivial-gray-streams
.
General superclass for errors related to decompression.
simple-error
.
Signalled when the input stream/buffer is exhausted. Notably implies that the data up until this point was not detectably malformed. Note that even when the input is a stream, it is this condition which is signalled, not ‘end-of-file’.
Signalled when zlib decompression involves a preset dictionary whose checksum
isn’t recognized by the dictionary function.
Note: This condition is only signalled when preset dictionaries are enabled.
:checksum
This slot is read-only.
Gray stream wrapper that can be used for complicated stream processing. The end of file is considered reached when the underlying compressed data ends and all associated uncompressed data has been read.
fundamental-binary-input-stream
.
(setf decompression-stream-%format)
.
decompression-stream-%format
.
(setf decompression-stream-%header)
.
decompression-stream-%header
.
(setf decompression-stream-buffer-stream)
.
decompression-stream-buffer-stream
.
(setf decompression-stream-eof)
.
decompression-stream-eof
.
(setf decompression-stream-state)
.
decompression-stream-state
.
stream-element-type
.
stream-read-byte
.
stream-read-sequence
.
:state
:format
:header
:buffer-stream
Placeholder for buffer-typed slots.
‘pushnew’ the format keyword to this once you’ve implemented a new format.
An ‘svref’ for constants that derives integer bounds if possible.
Returns whether the underlying byte source can be safely used. This can be guaranteed by consuming at least 22 bits without a call to ‘lbr-ensure-bits’.
Removes up to the next ‘n’ bits from the buffer in ‘br’.
Ensures that at least ‘n’ bits are buffered in ‘br’.
Discards buffered bits in ‘br’ before the next byte boundary. This function does NOT guarantee that bytewise I/O will be usable afterwards.
Returns and consumes the next ‘n’ bits in ‘br’.
Returns whether the underlying byte source can be safely used. This can be guaranteed by consuming at least 27 bits without a call to ‘mbr-ensure-bits’.
Removes up to the next ‘n’ bits from the buffer in ‘br’.
Ensures that at least ‘n’ bits are buffered in ‘br’.
Discards buffered bits in ‘br’ before the next byte boundary. This function does NOT guarantee that bytewise I/O will be usable afterwards.
Returns and consumes the next ‘n’ bits in ‘br’.
reps
.
Reads the necessary data from the given ‘byte-source’ (see ‘io.lisp’) to create a decompression state for ‘format’. Returns two values: The decompression state that can be passed to ‘next-decompressed-chunk’ later and a plist of header metadata which will be returned to the user.
(eql :bzip2)
) source &key) ¶(eql :zlib)
) byte-source &key dictionary) ¶(eql :deflate)
) byte-source &key window-size prefix prefix-start prefix-end) ¶bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
bzip2-state
)) ¶automatically generated reader method
bzip2-state
)) ¶automatically generated writer method
decompression-stream
)) ¶automatically generated reader method
decompression-stream
)) ¶automatically generated writer method
decompression-stream
)) ¶automatically generated reader method
decompression-stream
)) ¶automatically generated writer method
decompression-stream
)) ¶automatically generated reader method
decompression-stream
)) ¶automatically generated writer method
decompression-stream
)) ¶automatically generated reader method
%eof
.
decompression-stream
)) ¶automatically generated writer method
%eof
.
decompression-stream
)) ¶automatically generated reader method
decompression-stream
)) ¶automatically generated writer method
deflate-huffman-info
)) ¶automatically generated reader method
deflate-huffman-info
)) ¶automatically generated writer method
deflate-huffman-info
)) ¶automatically generated reader method
deflate-huffman-info
)) ¶automatically generated writer method
deflate-huffman-info
)) ¶automatically generated reader method
deflate-huffman-info
)) ¶automatically generated writer method
deflate-huffman-info
)) ¶automatically generated reader method
deflate-huffman-info
)) ¶automatically generated writer method
deflate-state
)) ¶automatically generated reader method
deflate-state
)) ¶automatically generated writer method
deflate-state
)) ¶automatically generated reader method
deflate-state
)) ¶automatically generated writer method
deflate-state
)) ¶automatically generated reader method
deflate-state
)) ¶automatically generated writer method
deflate-state
)) ¶automatically generated reader method
dhi
.
deflate-state
)) ¶automatically generated writer method
dhi
.
deflate-state
)) ¶automatically generated reader method
deflate-state
)) ¶automatically generated writer method
deflate-state
)) ¶automatically generated reader method
deflate-state
)) ¶automatically generated writer method
deflate-state
)) ¶automatically generated reader method
deflate-state
)) ¶automatically generated writer method
deflate-state
)) ¶automatically generated reader method
deflate-state
)) ¶automatically generated writer method
gzip-state
)) ¶automatically generated reader method
gzip-state
)) ¶automatically generated writer method
gzip-state
)) ¶automatically generated reader method
gzip-state
)) ¶automatically generated writer method
gzip-state
)) ¶automatically generated reader method
gzip-state
)) ¶automatically generated writer method
Returns four values: chunk, start, end, finalp. The data is in ‘chunk’, between ‘start’ and ‘end’. No callers modify the contents of ‘chunk’; methods may change its contents on later calls, but not before that.
bzip2-state
)) ¶gzip-state
)) ¶zlib-state
)) ¶deflate-state
)) ¶zlib-state
)) ¶automatically generated reader method
zlib-state
)) ¶automatically generated writer method
zlib-state
)) ¶automatically generated reader method
zlib-state
)) ¶automatically generated writer method
structure-object
.
semz.decompress::buffer
semz.decompress::+dummy-buffer+
alexandria:array-length
0
alexandria:array-length
0
(lambda nil nil)
structure-object
.
structure-object
.
(simple-array semz.decompress::ht-entry (*))
(alexandria:required-argument :table)
(integer 1 20)
(alexandria:required-argument :min-codelen)
(integer 1 20)
(alexandria:required-argument :max-codelen)
structure-object
.
semz.decompress::byte-source
(alexandria:required-argument :source)
(unsigned-byte 22)
0
(integer 0 22)
0
structure-object
.
semz.decompress::byte-source
(alexandria:required-argument :source)
(unsigned-byte 27)
0
(integer 0 27)
0
(setf bz-bit-reader)
.
bz-bit-reader
.
(setf bz-block-info)
.
bz-block-info
.
(setf bz-block-size)
.
bz-block-size
.
(setf bz-bwt-size)
.
bz-bwt-size
.
(setf bz-output-buffer)
.
bz-output-buffer
.
(setf bz-post-bwt-buffer)
.
bz-post-bwt-buffer
.
(setf bz-pre-bwt-buffer)
.
bz-pre-bwt-buffer
.
(setf bz-rle1-state)
.
bz-rle1-state
.
(setf bz-state)
.
bz-state
.
(setf bz-stream-crc)
.
bz-stream-crc
.
(setf bz-temp-bwt-buffer)
.
bz-temp-bwt-buffer
.
(setf bz-trees)
.
bz-trees
.
next-decompressed-chunk
.
semz.decompress::msb-bit-reader
:bit-reader
(integer 100000 900000)
:block-size
(semz.decompress::start-bzip2-stream-crc)
simple-vector
:trees
semz.decompress::buffer
:pre-bwt-buffer
(simple-array semz.decompress::bzip2-block-index (*))
:temp-bwt-buffer
semz.decompress::buffer
:post-bwt-buffer
semz.decompress::buffer
:output-buffer
:block-boundary
(setf ds-bit-reader)
.
ds-bit-reader
.
(setf ds-block-type)
.
ds-block-type
.
(setf ds-buffer)
.
ds-buffer
.
(setf ds-dhi)
.
ds-dhi
.
(setf ds-fill-pointer)
.
ds-fill-pointer
.
(setf ds-final-block-p)
.
ds-final-block-p
.
(setf ds-uncompressed-remaining-bytes)
.
ds-uncompressed-remaining-bytes
.
(setf ds-window-size)
.
ds-window-size
.
next-decompressed-chunk
.
boolean
semz.decompress::lsb-bit-reader
:bit-reader
semz.decompress::buffer
:buffer
common-lisp
.
alexandria:array-length
:fill-pointer
(integer 0 32768)
:window-size
(member :block-boundary :uncompressed :fixed :dynamic)
:block-boundary
:block-type
(or null semz.decompress::deflate-huffman-info)
Jump to: | %
(
A B C D E F G H L M N O P R S T U W Z |
---|
Jump to: | %
(
A B C D E F G H L M N O P R S T U W Z |
---|
Jump to: | %
*
+
B C D E F L M O P R S T U W |
---|
Jump to: | %
*
+
B C D E F L M O P R S T U W |
---|
Jump to: | A B C D E F G H I L M O P S T U Z |
---|
Jump to: | A B C D E F G H I L M O P S T U Z |
---|