vmgs_lib

Function read_vmgs

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn read_vmgs(
    file_path: *const c_char,
    file_id: FileId,
    encryption_key: *const c_char,
    use_encryption: bool,
    in_buf: *mut u8,
    in_len: u64,
) -> VmgsError
Expand description

Read the contents of a FileId in a VMGS file

ยงSafety

file_path must point to a valid null-terminated utf-8 string. in_len must be the size of in_buf in bytes and match the value returned from query_size_vmgs