#[unsafe(no_mangle)]pub unsafe extern "C" fn gltforge_image_bytes(
ptr: *const UnityGltf,
image_idx: u32,
out_len: *mut u32,
) -> *const u8Expand description
Return a pointer to the raw encoded image bytes (PNG, JPEG, …) for a
buffer-view-embedded image. out_len receives the byte count.
Returns null if image_idx is out of range or the image is URI-based.
§Safety
ptr must be a valid, non-null handle. out_len may be null.
The returned pointer is valid for the lifetime of the UnityGltf handle.