#[repr(C)]pub struct VSIFilesystemPluginCallbacksStruct {Show 22 fields
pub pUserData: *mut c_void,
pub stat: VSIFilesystemPluginStatCallback,
pub unlink: VSIFilesystemPluginUnlinkCallback,
pub rename: VSIFilesystemPluginRenameCallback,
pub mkdir: VSIFilesystemPluginMkdirCallback,
pub rmdir: VSIFilesystemPluginRmdirCallback,
pub read_dir: VSIFilesystemPluginReadDirCallback,
pub open: VSIFilesystemPluginOpenCallback,
pub tell: VSIFilesystemPluginTellCallback,
pub seek: VSIFilesystemPluginSeekCallback,
pub read: VSIFilesystemPluginReadCallback,
pub read_multi_range: VSIFilesystemPluginReadMultiRangeCallback,
pub get_range_status: VSIFilesystemPluginGetRangeStatusCallback,
pub eof: VSIFilesystemPluginEofCallback,
pub write: VSIFilesystemPluginWriteCallback,
pub flush: VSIFilesystemPluginFlushCallback,
pub truncate: VSIFilesystemPluginTruncateCallback,
pub close: VSIFilesystemPluginCloseCallback,
pub nBufferSize: usize,
pub nCacheSize: usize,
pub sibling_files: VSIFilesystemPluginSiblingFilesCallback,
pub advise_read: VSIFilesystemPluginAdviseReadCallback,
}
Expand description
struct containing callbacks to used by the handler. (rw), (r), (w) or () at the end indicate whether the given callback is mandatory for reading and or writing handlers. A (?) indicates that the callback might be mandatory for certain drivers only. @since GDAL 3.0
Fields§
§pUserData: *mut c_void
Optional opaque pointer passed back to filemanager callbacks (e.g. open, stat, rmdir)
stat: VSIFilesystemPluginStatCallback
< stat handle by name (rw)
unlink: VSIFilesystemPluginUnlinkCallback
< unlink handle by name ()
rename: VSIFilesystemPluginRenameCallback
< rename handle ()
mkdir: VSIFilesystemPluginMkdirCallback
< make directory ()
rmdir: VSIFilesystemPluginRmdirCallback
< remove directory ()
read_dir: VSIFilesystemPluginReadDirCallback
< list directory content (r?)
open: VSIFilesystemPluginOpenCallback
< open handle by name (rw)
tell: VSIFilesystemPluginTellCallback
< get current position of handle (rw)
seek: VSIFilesystemPluginSeekCallback
< set current position of handle (rw)
read: VSIFilesystemPluginReadCallback
< read from current position (r)
read_multi_range: VSIFilesystemPluginReadMultiRangeCallback
< read multiple blocks ()
get_range_status: VSIFilesystemPluginGetRangeStatusCallback
< get range status ()
eof: VSIFilesystemPluginEofCallback
< has end of file been reached (r?)
write: VSIFilesystemPluginWriteCallback
< write bytes to current position (w)
flush: VSIFilesystemPluginFlushCallback
< sync bytes (w)
truncate: VSIFilesystemPluginTruncateCallback
< truncate handle (w?)
close: VSIFilesystemPluginCloseCallback
< close handle (rw)
nBufferSize: usize
< buffer small reads (makes handler read only)
nCacheSize: usize
< max mem to use per file when buffering
sibling_files: VSIFilesystemPluginSiblingFilesCallback
< list related files
advise_read: VSIFilesystemPluginAdviseReadCallback
< AdviseRead()
Trait Implementations§
source§impl Clone for VSIFilesystemPluginCallbacksStruct
impl Clone for VSIFilesystemPluginCallbacksStruct
source§fn clone(&self) -> VSIFilesystemPluginCallbacksStruct
fn clone(&self) -> VSIFilesystemPluginCallbacksStruct
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more