pub struct FileIdentity;Expand description
Read identity bytes.
Implementations§
Source§impl FileIdentity
impl FileIdentity
Sourcepub fn read_slice(buffer: &[u8], identity: &[u8]) -> Result<(), Error>
pub fn read_slice(buffer: &[u8], identity: &[u8]) -> Result<(), Error>
Read the identity magic bytes from a slice.
Sourcepub async fn read_identity<R: AsyncReadExt + AsyncSeek + Unpin + Send>(
reader: &mut BinaryReader<R>,
identity: &[u8],
) -> Result<(), Error>
pub async fn read_identity<R: AsyncReadExt + AsyncSeek + Unpin + Send>( reader: &mut BinaryReader<R>, identity: &[u8], ) -> Result<(), Error>
Read the identity magic bytes.
Auto Trait Implementations§
impl Freeze for FileIdentity
impl RefUnwindSafe for FileIdentity
impl Send for FileIdentity
impl Sync for FileIdentity
impl Unpin for FileIdentity
impl UnwindSafe for FileIdentity
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