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

Interface for Packet's writing functions.

#include <nrg_packet.h>

Inheritance diagram for nrg::PacketWritable:
nrg::Packet

Public Member Functions

virtual PacketWritablewrite8 (const uint8_t &v)=0
 Write a uint8_t, automatically converting endianness.
 
virtual PacketWritablewrite16 (const uint16_t &v)=0
 Write a uint16_t, automatically converting endianness.
 
virtual PacketWritablewrite32 (const uint32_t &v)=0
 Write a uint32_t, automatically converting endianness.
 
virtual PacketWritablewrite64 (const uint64_t &v)=0
 Write a uint64_t, automatically converting endianness.
 
virtual PacketWritablewriteArray (const void *v, size_t size)=0
 Write an array of size size, no endian conversion is performed.
 
virtual ~PacketWritable ()
 Standard Destructor.
 

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