ptcov 0.1.0

Decoder to compute code coverage from IntelĀ® Processor Trace traces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug, PartialEq, Clone)]
pub struct Mtc {
    raw: u8,
}

impl Mtc {
    pub(crate) const SIZE: usize = 2;

    // pub(crate) fn try_from_payload(payload: &[u8]) -> Result<Self, PtPacketParseError> {
    //     if payload.is_empty() {
    //         Err(PtPacketParseError::MalformedPacket)
    //     } else {
    //         Ok(Self { raw: payload[0] })
    //     }
    // }
}