pub struct MetadataHeader {
pub signature: u32,
pub major_version: u16,
pub minor_version: u16,
pub reserved: u32,
pub version_length: u32,
pub version_string: String,
pub flags: u16,
pub streams: u16,
}Expand description
旧版本的元数据头结构,用于向后兼容
Fields§
§signature: u32魔数,通常为 0x424A5342 (BSJB)
major_version: u16元数据格式主版本
minor_version: u16元数据格式次版本
reserved: u32保留字段,通常为 0
version_length: u32运行时版本字符串的长度
version_string: String运行时版本字符串的内容
flags: u16元数据标志位
streams: u16元数据流的数量
Trait Implementations§
Source§impl Clone for MetadataHeader
impl Clone for MetadataHeader
Source§fn clone(&self) -> MetadataHeader
fn clone(&self) -> MetadataHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MetadataHeader
impl RefUnwindSafe for MetadataHeader
impl Send for MetadataHeader
impl Sync for MetadataHeader
impl Unpin for MetadataHeader
impl UnwindSafe for MetadataHeader
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