ptcov 0.1.0-beta.1

Decoder to compute code coverage from IntelĀ® Processor Trace traces
Documentation
#[derive(Debug, PartialEq, Clone)]
pub struct Tsc {
    raw: [u8; 7],
}

impl Tsc {
    pub(crate) const SIZE: usize = 8;

    // pub(super) fn try_from_payload(payload: &[u8]) -> Result<Self, PtPacketParseError> {
    //     // the try_into cannot fail, therefore the unwrap() can never panic.
    //     let raw = payload
    //         .get(..8)
    //         .ok_or(PtPacketParseError::MalformedPacket)?
    //         .try_into()
    //         .unwrap();
    //
    //     Ok(Self { raw })
    // }
}