[][src]Function bve_native::filesystem::bve_filesystem_read_convert_utf8

#[no_mangle]
#[must_use]
pub unsafe extern "C" fn bve_filesystem_read_convert_utf8(
    filename_ptr: *const c_char
) -> Option<NonNull<c_char>>

Reads the file at filename with bve::filesystem::read_convert_utf8.

Safety

  • Pointer returned points to an owned string containing the contents of the file in utf8.
  • Returned pointer must be deleted by crate::bve_delete_string.
  • If file loading fails, output is null.