Trait VfsStore

Source
pub trait VfsStore {
    // Required methods
    fn read(&self, buf: &mut [u8], offset: usize) -> i32;
    fn write(&mut self, buf: &[u8], offset: usize);
    fn truncate(&mut self, size: usize);
    fn size(&self) -> usize;
}
Expand description

Some basic capabilities of Store

Required Methods§

Source

fn read(&self, buf: &mut [u8], offset: usize) -> i32

Abstraction of xRead, returns SQLITE_OK or SQLITE_IOERR_SHORT_READ

Source

fn write(&mut self, buf: &[u8], offset: usize)

Abstraction of xWrite

Source

fn truncate(&mut self, size: usize)

Abstraction of xTruncate

Source

fn size(&self) -> usize

Get file size

Implementors§