Struct symphonia_core::checksum::Crc16Ansi [−][src]
Crc16Ansi
implements the CRC-16 algorithm using the ANSI polynominal.
- Polynomial = 0x8005
- RefIn = false
- RefOut = false
- XorOut = false
Implementations
impl Crc16Ansi
[src]
pub fn new(state: u16) -> Self
[src]
Instantiate a Crc16Ansi
instance with an initial state.
pub fn crc(&self) -> u16
[src]
Returns the computed CRC.
Trait Implementations
impl Monitor for Crc16Ansi
[src]
fn process_byte(&mut self, byte: u8)
[src]
fn process_buf_bytes(&mut self, buf: &[u8])
[src]
fn process_double_bytes(&mut self, buf: [u8; 2])
[src]
fn process_triple_bytes(&mut self, buf: [u8; 3])
[src]
fn process_quad_bytes(&mut self, buf: [u8; 4])
[src]
Auto Trait Implementations
impl RefUnwindSafe for Crc16Ansi
impl Send for Crc16Ansi
impl Sync for Crc16Ansi
impl Unpin for Crc16Ansi
impl UnwindSafe for Crc16Ansi
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
[src]
T: FromSample<F>,
pub fn into_sample(Self) -> T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,