iptr-decoder 0.1.3

Idiomatic Rust-style low-level Intel PT trace handler.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use core::marker::PhantomData;

use crate::{DecoderContext, HandlePacket, error::DecoderResult};

pub mod level1;
pub mod level2;

type RawPacketHandler<H> = fn(
    buf: &[u8],
    byte: u8,
    context: &mut DecoderContext,
    packet_handler: &mut H,
) -> DecoderResult<(), H>;

pub struct RawPacketHandlers<H: HandlePacket> {
    phantom: PhantomData<H>,
}