implemented inflate-raw (uncompressed chunks)
parent
9612b43034
commit
f09a2807fa
|
@ -151,7 +151,16 @@ CONSTANT: dist-table
|
||||||
] when
|
] when
|
||||||
] map ;
|
] map ;
|
||||||
|
|
||||||
: inflate-raw ( bitstream -- bytes ) zlib-unimplemented ;
|
:: inflate-raw ( bitstream -- bytes )
|
||||||
|
8 bitstream bs:align
|
||||||
|
16 bitstream bs:read :> len
|
||||||
|
16 bitstream bs:read :> nlen
|
||||||
|
len nlen + 16 >signed -1 assert= ! len + ~len = -1
|
||||||
|
bitstream byte-pos>>
|
||||||
|
bitstream byte-pos>> len +
|
||||||
|
bitstream bytes>> <slice>
|
||||||
|
len 8 * bitstream bs:seek ;
|
||||||
|
|
||||||
: inflate-static ( bitstream -- bytes ) zlib-unimplemented ;
|
: inflate-static ( bitstream -- bytes ) zlib-unimplemented ;
|
||||||
|
|
||||||
:: inflate-loop ( bitstream -- bytes )
|
:: inflate-loop ( bitstream -- bytes )
|
||||||
|
|
Loading…
Reference in New Issue