Crate cramjam[−][src]
CramJam documentation of python exported functions for (de)compression of bytes
The API follows cramjam.<<compression algorithm>>.compress
and cramjam.<<compression algorithm>>.decompress
Python Example:
data = b'some bytes here'
compressed = cramjam.snappy.compress(data)
decompressed = cramjam.snappy.decompress(compressed)
assert data == decompressed
Modules
brotli | |
deflate | |
exceptions | |
gzip | |
lz4 | |
snappy | |
zstd |
Macros
to_py_err |
Enums
BytesType | |
Output | Buffer to de/compression algorithms' output. ::Vector used when the output len cannot be determined, and/or resulting python object cannot be resized to what the actual bytes decoded was. |
Functions
PyInit_cramjam⚠ | This autogenerated function is called by the python interpreter when importing the module. |
de_compress_into | Expose de/compression_into(data: BytesType<'_>, array: &PyArray1 |