LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::PacketReadable Struct Referenceabstract

Interface for Packet's reading functions.

#include <nrg_packet.h>

Inheritance diagram for nrg::PacketReadable:
nrg::Packet

Public Member Functions

virtual PacketReadableread8 (uint8_t &v)=0
 Read a uint8_t, automatically converting endianness.
 
virtual PacketReadableread16 (uint16_t &v)=0
 Read a uint16_t, automatically converting endianness.
 
virtual PacketReadableread32 (uint32_t &v)=0
 Read a uint32_t, automatically converting endianness.
 
virtual PacketReadableread64 (uint64_t &v)=0
 Read a uint64_t, automatically converting endianness.
 
virtual PacketReadablereadArray (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.
 

The documentation for this struct was generated from the following file: