saved_struct_load

Function saved_struct_load 

Source
pub unsafe extern "C" fn saved_struct_load(
    path: *const c_char,
    data: *mut c_void,
    size: usize,
    magic: u8,
    version: u8,
) -> bool
Expand description

Load data from the file in saved structure format

§Arguments

  • path (direction in) - The path to the file
  • data (direction out) - Pointer to the memory where to load data
  • size (direction in) - The size of the data
  • magic (direction in) - The magic to embed into metadata
  • version (direction in) - The version to embed into metadata

§Returns

true on success, false otherwise