Interface for Packet's reading functions.
#include <nrg_packet.h>
Public Member Functions | |
virtual PacketReadable & | read8 (uint8_t &v)=0 |
Read a uint8_t, automatically converting endianness. | |
virtual PacketReadable & | read16 (uint16_t &v)=0 |
Read a uint16_t, automatically converting endianness. | |
virtual PacketReadable & | read32 (uint32_t &v)=0 |
Read a uint32_t, automatically converting endianness. | |
virtual PacketReadable & | read64 (uint64_t &v)=0 |
Read a uint64_t, automatically converting endianness. | |
virtual PacketReadable & | readArray (uint8_t *v, size_t size)=0 |
Read an array of size size into v , make sure it's big enough! | |
virtual | ~PacketReadable () |
Standard Destructor. | |