Struct windows_metadata::reader::File
source · pub struct File { /* private fields */ }
Implementations§
source§impl File
impl File
pub fn with_default(paths: &[&str]) -> Result<Vec<Self>>
pub fn new<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn from_buffer(bytes: Vec<u8>) -> Result<Self>
pub fn usize(&self, row: usize, table: usize, column: usize) -> usize
sourcepub fn str(&self, row: usize, table: usize, column: usize) -> &str
pub fn str(&self, row: usize, table: usize, column: usize) -> &str
Returns the string from the #Strings
stream as referenced by
the (table, row, column) triple.
Panics
- When any element of the (table, row, column) triple is invalid.
- When the offset in the string table is out of bounds.
- When no null terminator can be found in the string table.
- When the null-terminated string is not valid utf-8.