Struct p25::data::crc::CRC
[−]
[src]
pub struct CRC<P: CRCParams> { /* fields omitted */ }
CRC calculator using long division.
Methods
impl<P: CRCParams> CRC<P>
[src]
pub fn new() -> CRC<P>
[src]
Construct a new CRC
with empty output.
pub fn feed_bits(&mut self, bits: u8, num: usize) -> &mut Self
[src]
Feed in num
LSBs of the given byte.
pub fn feed_bytes<T: IntoIterator<Item = u8>>(&mut self, bytes: T) -> &mut Self
[src]
Feed in the given byte stream.
pub fn finish(&mut self) -> u64
[src]
Finish the CRC calculation and return the resulting CRC.