52c52
< /*
---
> /**
57,58c57,58
< /*
< * Length of the current packet
---
> /**
> * Amount of space occupied by the payload in the data buffer
62c62,70
< public:
---
> /**
> * Effective length, used for modeling timing in the simulator.
> * This could be different from length if the packets are assumed
> * to use a tightly packed or compressed format, but it's not worth
> * the performance/complexity hit to perform that packing or compression
> * in the simulation.
> */
> unsigned simLength;
>
64c72
< : data(NULL), length(0)
---
> : data(nullptr), length(0), simLength(0)
68c76
< : data(new uint8_t[size]), length(0)
---
> : data(new uint8_t[size]), length(0), simLength(0)
73,74d80
< public:
<
77,78d82
<
< unsigned size() const { return length; }