Handbook
Glossary
snappy-compress ( byte-array -- compressed )
Vocabulary
compression
.
snappy
Inputs
byte-array
an
object
Outputs
compressed
an
object
Definition
USING:
alien.c-types
alien.data
compression.snappy.ffi
compression.snappy.private
kernel
sequences
;
IN:
compression.snappy
:
snappy-compress
( byte-array -- compressed )
dup
length
dup
snappy_max_compressed_length
n>outs
[
snappy_compress
check-snappy
]
2keep
size_t
deref
head
;