1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::prelude::*;

#[derive(Debug)]
pub struct G<'a> {
    pub vals: &'a [u8],
}

impl<'a> ParseCommand<'a> for G<'a> {
    #[inline(always)]
    fn from_packet(buf: PacketBuf<'a>) -> Option<Self> {
        Some(G {
            vals: decode_hex_buf(buf.into_body()).ok()?,
        })
    }
}