fastalp 0.1.9

High-performance lossless floating-point compression in pure Rust / 基于 ALP 算法的高性能无损浮点数压缩库
Documentation
mod bitpack;
mod constants;
mod decoder;
mod encoder;
mod error;
mod sampler;

pub use bitpack::{bitpack_encoded, bitpack_u64, bitunpack_into, bitunpack_u64, packed_byte_size};
pub use constants::{
  AlpFloat, ENCODING_UPPER_LIMIT_F32, ENCODING_UPPER_LIMIT_F64, EXP_ARR_F32, EXP_ARR_F64,
  FACT_ARR_F32, FACT_ARR_F64, FRAC_ARR_F32, FRAC_ARR_F64, MAGIC_NUMBER_F32, MAGIC_NUMBER_F64,
  MAX_EXPONENT_F32, MAX_EXPONENT_F64, bit_mask, bit_mask_u64, bits_needed, bits_needed_u64,
};
pub use decoder::{decompress, decompress_into};
pub use encoder::{ALP_MAGIC, Exception, TYPE_F32, TYPE_F64, compress, compress_into};
pub use error::{Error, Result};
pub use sampler::{
  BestParams, SAMPLES_COUNT, find_best_params, is_impossible, try_encode_fast, try_encode_value,
};