pub struct VirtualFileFooter {
pub filenumber: u64,
pub hash_header: HashHeader,
pub length_of_data: u64,
pub vffc: VirtualFileFooterContent,
}Expand description
Footer of a virtual logical file.
This footer stores the virtual file’s file number, hash metadata, logical data length, and the type-specific VirtualFileFooterContent.
Fields§
§filenumber: u64The file number of the virtual file this footer belongs to.
hash_header: HashHeaderThe hash information for the virtual file data.
length_of_data: u64The logical length of the represented file data in bytes.
vffc: VirtualFileFooterContentThe type-specific virtual file footer content.
Implementations§
Sourcepub fn new(
filenumber: u64,
hash_header: HashHeader,
length_of_data: u64,
vffc: VirtualFileFooterContent,
) -> Self
pub fn new( filenumber: u64, hash_header: HashHeader, length_of_data: u64, vffc: VirtualFileFooterContent, ) -> Self
Creates a new VirtualFileFooter from the file number, hash information, logical data length, and footer content.
decodes the encrypted header with the given key and crate::header::EncryptionHeader at given offset. The appropriate crate::header::EncryptionHeader has to be stored in the appropriate crate::header::ObjectHeader.
decodes the encrypted header with the given key and crate::header::EncryptionHeader. The appropriate crate::header::EncryptionHeader has to be stored in the appropriate crate::header::ObjectHeader.
Trait Implementations§
Source§fn clone(&self) -> VirtualFileFooter
fn clone(&self) -> VirtualFileFooter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn crypto_nonce_padding() -> u8
fn crypto_nonce_padding() -> u8
Source§fn encrypt<K, M, A>(
key: K,
message: M,
nonce_value: u64,
algorithm: A,
) -> Result<Vec<u8>>
fn encrypt<K, M, A>( key: K, message: M, nonce_value: u64, algorithm: A, ) -> Result<Vec<u8>>
Source§fn from(vff: VirtualFileFooter) -> Self
fn from(vff: VirtualFileFooter) -> Self
Source§type Item = VirtualFileFooter
type Item = VirtualFileFooter
Source§fn version() -> u8
fn version() -> u8
Source§fn identifier() -> u32
fn identifier() -> u32
Source§fn encode_content(&self) -> Vec<u8> ⓘ
fn encode_content(&self) -> Vec<u8> ⓘ
Source§fn encode_fixed_fields(&self) -> Vec<u8> ⓘ
fn encode_fixed_fields(&self) -> Vec<u8> ⓘ
Source§fn decode_content(data: &[u8]) -> Result<Self>
fn decode_content(data: &[u8]) -> Result<Self>
Source§fn header_size(&self) -> usize
fn header_size(&self) -> usize
Source§fn encode_directly(&self) -> Vec<u8> ⓘ
fn encode_directly(&self) -> Vec<u8> ⓘ
Source§fn decode_header_length<R: Read>(data: &mut R) -> Result<u64>
fn decode_header_length<R: Read>(data: &mut R) -> Result<u64>
Source§fn check_identifier<R: Read>(data: &mut R) -> bool
fn check_identifier<R: Read>(data: &mut R) -> bool
Source§fn check_version<R: Read>(data: &mut R) -> Result<()>
fn check_version<R: Read>(data: &mut R) -> Result<()>
Source§fn decode_at<R: ReadAt + ?Sized>(data: &R, offset: u64) -> Result<Self::Item>
fn decode_at<R: ReadAt + ?Sized>(data: &R, offset: u64) -> Result<Self::Item>
Source§fn struct_name() -> &'static str
fn struct_name() -> &'static str
Source§fn nonce_value(&self) -> u64
fn nonce_value(&self) -> u64
Source§fn encryption_precondition(&self) -> bool
fn encryption_precondition(&self) -> bool
Source§fn encrypt_directly<E: Borrow<EncryptionInformation>>(
&self,
encryption_information: E,
) -> Result<Vec<u8>>
fn encrypt_directly<E: Borrow<EncryptionInformation>>( &self, encryption_information: E, ) -> Result<Vec<u8>>
Vec<u8>. Read moreSource§fn encode_encrypted_header<E: Borrow<EncryptionInformation>>(
&self,
encryption_information: E,
) -> Result<Vec<u8>>
fn encode_encrypted_header<E: Borrow<EncryptionInformation>>( &self, encryption_information: E, ) -> Result<Vec<u8>>
Auto Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more