Skip to content

Instantly share code, notes, and snippets.

@agrif
Created February 26, 2021 00:43
Show Gist options
  • Save agrif/7f058f10149466b41b120df17c6689c6 to your computer and use it in GitHub Desktop.
Save agrif/7f058f10149466b41b120df17c6689c6 to your computer and use it in GitHub Desktop.
let mut fileio = sf::SF_VIRTUAL_IO {
get_filelen: Self::vio_get_filelen,
seek: Self::vio_seek,
read: Self::vio_read,
//write: unsafe { std::mem::transmute(std::ptr::null::<libc::c_void>()) },
write: Self::vio_write,
tell: Self::vio_tell,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment