Skip to main content

pamoja_codec_encode_deltas

Function pamoja_codec_encode_deltas 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_codec_encode_deltas( samples: *const i64, count: usize, out_buffer: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand description

Delta-encodes a series of integer samples into a compact buffer.

§Returns

PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle the caller must release with pamoja_buffer_free.

§Safety

samples must point to at least count readable int64 values, or be null when count is 0, and out_buffer must point to a writable *mut PamojaBuffer.