pub struct SDL_RWops {
pub size: extern fn(context: *mut SDL_RWops) -> int64_t,
pub seek: extern fn(context: *mut SDL_RWops, offset: int64_t, whence: c_int) -> int64_t,
pub read: extern fn(context: *mut SDL_RWops, ptr: *mut c_void, size: size_t, maxnum: size_t) -> size_t,
pub write: extern fn(context: *mut SDL_RWops, ptr: *const c_void, size: size_t, maxnum: size_t) -> size_t,
pub close: extern fn(context: *mut SDL_RWops) -> c_int,
pub type_: uint32_t,
// some fields omitted
}
Fields
size: extern fn(context: *mut SDL_RWops) -> int64_t
seek: extern fn(context: *mut SDL_RWops, offset: int64_t, whence: c_int) -> int64_t
read: extern fn(context: *mut SDL_RWops, ptr: *mut c_void, size: size_t, maxnum: size_t) -> size_t
write: extern fn(context: *mut SDL_RWops, ptr: *const c_void, size: size_t, maxnum: size_t) -> size_t
close: extern fn(context: *mut SDL_RWops) -> c_int
type_: uint32_t