Handbook
Glossary
(uncompress) ( length byte-array -- byte-array )
Vocabulary
compression
.
zlib
Inputs
length
an
object
byte-array
an
object
Outputs
byte-array
an
object
Definition
USING:
alien.c-types
alien.data
compression.zlib.ffi
destructors
kernel
libc
sequences
;
IN:
compression.zlib
:
(uncompress)
( length byte-array -- byte-array )
[
[
drop
[
malloc
&free
]
[
ulong
<ref>
]
bi
]
[
nip
dup
length
]
2bi
[
uncompress
zlib-error
]
4keep
2drop
ulong
deref
memory>byte-array
]
with-destructors
;