vmgs_lib

Function create_vmgs

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn create_vmgs(
    path: *const c_char,
    file_size: u64,
    force_create: bool,
    encryption_key: *const c_char,
    use_encryption: bool,
) -> VmgsError
Expand description

Create a VMGS file

If file_size is zero, default size of 4MB is used Creation will fail if path already exists unless the force_create flag is set The VMGS file can optionally be encrypted by setting the use_encryption flag and specifying an encryption key

ยงSafety

path must point to a valid null-terminated utf-8 string.