fastalp 0.1.7

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_encoded_f32, bitpack_encoded_f64, bitpack_u64, bitunpack_f32_into,
  bitunpack_f64_into, 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_u32, bit_mask_u64, bits_needed_u32, bits_needed_u64,
};
pub use decoder::{
  decompress, decompress_f32, decompress_f32_into, decompress_f64, decompress_f64_into,
  decompress_into,
};
pub use encoder::{
  ALP_MAGIC, Exception, ExceptionF32, ExceptionF64, TYPE_F32, TYPE_F64, compress, compress_f32,
  compress_f32_into, compress_f64, compress_f64_into, compress_into,
};
pub use error::{Error, Result};
pub use sampler::{
  BestParams, SAMPLES_COUNT, find_best_params, find_best_params_f32, find_best_params_f64,
  is_impossible_f32, is_impossible_f64, try_encode_fast_f32, try_encode_fast_f64,
  try_encode_value_f32, try_encode_value_f64,
};