heapdump_vmo::stack_trace_compression

Function compress_into

Source
pub fn compress_into(src: &[u64], dest: &mut [u8]) -> usize
Expand description

Compresses a stack trace into a preallocated buffer.

The destination buffer’s size must be suitable for the input size (see max_compressed_size in this crate).

This function returns the number of bytes actually written into the destination buffer (i.e. the compressed size).