class io.HwcProtoDecoder

class HwcProtoDecoder {
    // fields

    std.Buffer readonly m_buffer;
    size_t readonly m_msgCount;

    // events

    event m_onMsg(io.HwcMsgHdr const* hdr);

    event m_onOobData(
        void const* p,
        size_t size
    );

    // methods

    void reset();
    void ensureZeroTerminatedBuffer();

    void write(
        void const* p,
        size_t size
    );
};