pub fn export_to_binary_with_mode<P: AsRef<Path>>(
allocations: &[AllocationInfo],
path: P,
export_mode: BinaryExportMode,
config: &BinaryExportConfig,
) -> Result<(), BinaryExportError>
Expand description
Export allocation information to binary format with enhanced header
This function properly filters allocations based on the export mode:
- UserOnly: Only exports allocations with var_name (user allocations)
- Full: Exports all allocations (user + system)
§Arguments
allocations
- Vector of allocation information to exportpath
- Path where the binary file will be writtenexport_mode
- Binary export mode that controls which allocations are writtenconfig
- Export configuration settings
§Returns
Result<(), BinaryExportError>
- Success or detailed export error