Bit unpacking module for extracting timestamp and value bitstreams from packed binary data.
This module reverses the bit packing process to separate the combined bitstream back into its timestamp and value components for individual decompression.
The unpacking process:
- Uses metadata to determine bitstream lengths
- Extracts timestamp bitstream
- Extracts value bitstream
- Returns both components with metadata for decompression
Summary
Functions
Estimates unpacking performance for given packed data.
Gets information about packed data without full unpacking.
Unpacks binary data into timestamp and value bitstreams using metadata.
Validates that packed data can be properly unpacked.
Functions
Estimates unpacking performance for given packed data.
Parameters
packed_data: Binary data to analyze
Returns
{:ok, performance_info}: Performance estimates{:error, reason}: If analysis fails
Gets information about packed data without full unpacking.
Parameters
packed_data: Binary data to analyze
Returns
{:ok, info}with basic information, or{:error, reason}
Unpacks binary data into timestamp and value bitstreams using metadata.
Parameters
packed_data: Binary data containing packed timestamp and value bitstreams
Returns
{timestamp_bits, value_bits, metadata}: Tuple containing unpacked components and metadata
Validates that packed data can be properly unpacked.
Parameters
packed_data: Binary data to validate
Returns
:okif valid,{:error, reason}if invalid