pub trait NewRandomAccessFile {
// Required method
fn new_random_access_file(
&mut self,
fname: &String,
result: *mut *mut Box<dyn RandomAccessFile>,
) -> Status;
}
Required Methods§
Sourcefn new_random_access_file(
&mut self,
fname: &String,
result: *mut *mut Box<dyn RandomAccessFile>,
) -> Status
fn new_random_access_file( &mut self, fname: &String, result: *mut *mut Box<dyn RandomAccessFile>, ) -> Status
| Create an object supporting random-access | reads from the file with the specified name. | On success, stores a pointer to the new file | in *result and returns OK. On failure stores | nullptr in *result and returns non-OK. If | the file does not exist, returns a non-OK | status. Implementations should return | a NotFound status when the file does not | exist. | | The returned file may be concurrently | accessed by multiple threads.