Function eos_rs::api::pack_file::alloc_and_load_file_in_pack
source · pub unsafe fn alloc_and_load_file_in_pack(
pack_number: Type,
file_number: u32,
malloc_flags: u32
) -> Vec<u8>
Expand description
Allocate a file and load a file from the pack archive inside.
This is functionally identical to load_file_in_pack_by_pack_number
,
but the game handles allocation.
Safety
The pack number and file number must be valid.