spdp_sys

Crates.iospdp_sys
lib.rsspdp_sys
version0.1.0
sourcesrc
created_at2024-05-28 10:41:33.861079
updated_at2024-05-28 10:41:33.861079
descriptionSPDP codec bindings
homepage
repositoryhttps://github.com/mwlon/spdp-sys
max_upload_size
id1254222
size12,675
Martin (mwlon)

documentation

README

SPDP Rust Bindings

See the Texas State page for information about this lossless codec for numerical data. Note that I am not the original author; this just binds to the original (v1.1) C source code.

Usage and Safety

READ THIS IF YOU WANT TO USE THE BINDINGS!

Unstated by the original authors, but to avoid segfaults and memory corrupts during batches, note:

  • Input buffers get modified, as well as output buffers.
  • During compression, the output buffer must be at least 2 * n + 9 bytes long, where n is the length of the input buffer.
  • During decompression, the input(!) buffer must be at least as long as the output buffer. To actually use this, you'll want to store both compressed and uncompressed sizes somewhere else, then populate an input buffer of length max(input_size, output_size) and an output buffer of length output_size.

Also Relevant

  • Pcodec: another lossless codec for numerical data; contains a CLI with with benchmarks that compare vs. SPDP and others.
Commit count: 1

cargo fmt