1 /** Aesalon, a tool to visualize program behaviour in real time.
2 Copyright (C) 2009-2011, Aesalon development team.
4 Aesalon is distributed under the terms of the GNU GPLv3. See
5 the included file LICENSE for more information.
7 @file include/comm/Packet.h
10 #ifndef AesalonComm_Packet_H
11 #define AesalonComm_Packet_H
13 #include "PacketHeader.h"
19 PacketHeader m_header
;
22 Packet(PacketHeader header
, uint8_t *data
)
23 : m_header(header
), m_data(data
) {}
25 const PacketHeader
&header() const { return m_header
; }
26 void setDataSize(uint32_t newSize
) { m_header
.dataSize
= newSize
; }
27 uint8_t *data() const { return m_data
; }