Struct flatdata::TarArchiveResourceStorage [−][src]
pub struct TarArchiveResourceStorage { /* fields omitted */ }
Expand description
Read-only resource storage on disk using a memory mapped tar archive.
Used to read flatdata archives from a tar archive on disk.
Examples
use flatdata::{TarArchiveResourceStorage, Vector};
use flatdata::test::X;
let storage = TarArchiveResourceStorage::new("/root/to/my/archive.tar")
.expect("failed to read tar archive");
let archive = X::open(storage).expect("failed to open");
// read data
archive.data();
Implementations
Trait Implementations
Creates a resource storage at a given subdirectory.
Reads a resource in storage and returns a pointer to its raw data. Read more
Creates a resource with given name and returns an output stream for writing to it. Read more
Open a flatdata resource with given name and schema for reading. Read more
Writes data of a flatdata resource with given name and schema to storage. Read more