Function bpx::section::new_section_data[][src]

pub fn new_section_data(size: Option<u32>) -> Result<Box<dyn SectionData>>
Expand description

Creates new section data by automatically choosing the right container given a section size

this function is not intended for direct use

Arguments

  • size - optional size of section, if None the section will automatically reallocate to fit its content

Returns

  • a Box of an opaque SectionData object
  • an Error in case the temporary file could not be created