pub struct NewCache {
pub nlibs: u32,
pub len_strings: u32,
pub flags: u8,
pub extension_offset: u32,
pub entries: Vec<NewFileEntry>,
pub extensions: Option<ExtensionDirectory>,
}Expand description
Modern glibc cache format with hardware capabilities and extensions.
This format extends the old format with hardware capability matching and optional extension directories for future enhancements.
§Fields
nlibs- Number of library entries in the cachelen_strings- Length of the string table in bytesflags- Endianness and format flags (2 = little endian)extension_offset- File offset to extension directory (0 = none)entries- Vector of new format file entries with hardware capabilitiesextensions- Optional extension directory for additional metadata
§Example
let new_cache = NewCache {
nlibs: 100,
len_strings: 5000,
flags: 2, // Little endian
extension_offset: 0, // No extensions
entries: vec![],
extensions: None,
};
assert_eq!(new_cache.flags, 2);Fields§
§nlibs: u32§len_strings: u32§flags: u8§extension_offset: u32§entries: Vec<NewFileEntry>§extensions: Option<ExtensionDirectory>Trait Implementations§
impl StructuralPartialEq for NewCache
Auto Trait Implementations§
impl Freeze for NewCache
impl RefUnwindSafe for NewCache
impl Send for NewCache
impl Sync for NewCache
impl Unpin for NewCache
impl UnwindSafe for NewCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more