export_to_binary_with_mode

Function export_to_binary_with_mode 

Source
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 export
  • path - Path where the binary file will be written
  • export_mode - Binary export mode that controls which allocations are written
  • config - Export configuration settings

§Returns

  • Result<(), BinaryExportError> - Success or detailed export error