neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::basic_data_packet< CharType > Class Template Referenceabstract

#include <data_packet.hpp>

Inheritance diagram for neolib::basic_data_packet< CharType >:
neolib::i_basic_packet< CharType > neolib::basic_binary_data_packet< char, DefaultPacketTraits > neolib::basic_binary_data_packet< CharType, PacketTraits > neolib::basic_tld_packet< IdType, MaxPacketSize, CharType, PacketTraits >

Public Types

typedef base_type::character_type character_type
 
typedef base_type::const_pointer const_pointer
 
typedef base_type::pointer pointer
 
typedef base_type::size_type size_type
 
typedef base_type::const_iterator const_iterator
 
typedef base_type::iterator iterator
 
typedef std::basic_string< CharTypestring_type
 

Public Member Functions

void encode (uint8_t aValue)
 
void encode (uint16_t aValue)
 
void encode (uint32_t aValue)
 
void encode (uint64_t aValue)
 
void encode (int8_t aValue)
 
void encode (int16_t aValue)
 
void encode (int32_t aValue)
 
void encode (int64_t aValue)
 
void encode (int64_t aValue, std::size_t aLength)
 
virtual void encode (uint64_t aValue, std::size_t aLength)=0
 
virtual void encode (bool aValue)=0
 
virtual void encode (const string_type &aValue)=0
 
template<typename T >
T decode () const
 
virtual uint64_t decode_integer (std::size_t aLength) const =0
 
virtual bool decode_bool () const =0
 
virtual string_type decode_string () const =0
 

Detailed Description

template<typename CharType>
class neolib::basic_data_packet< CharType >

Definition at line 60 of file data_packet.hpp.

Member Typedef Documentation

◆ character_type

Definition at line 66 of file data_packet.hpp.

◆ const_iterator

Definition at line 70 of file data_packet.hpp.

◆ const_pointer

Definition at line 67 of file data_packet.hpp.

◆ iterator

◆ pointer

◆ size_type

Definition at line 69 of file data_packet.hpp.

◆ string_type

template<typename CharType >
typedef std::basic_string<CharType> neolib::basic_data_packet< CharType >::string_type

Definition at line 72 of file data_packet.hpp.

Member Function Documentation

◆ decode()

template<typename CharType >
template<typename T >
T neolib::basic_data_packet< CharType >::decode ( ) const
inline

Definition at line 115 of file data_packet.hpp.

◆ decode_bool()

◆ decode_integer()

◆ decode_string()

◆ encode() [1/12]

◆ encode() [2/12]

◆ encode() [3/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( int16_t  aValue)
inline

Definition at line 95 of file data_packet.hpp.

◆ encode() [4/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( int32_t  aValue)
inline

Definition at line 99 of file data_packet.hpp.

◆ encode() [5/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( int64_t  aValue)
inline

Definition at line 103 of file data_packet.hpp.

◆ encode() [6/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( int64_t  aValue,
std::size_t  aLength 
)
inline

Definition at line 107 of file data_packet.hpp.

◆ encode() [7/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( int8_t  aValue)
inline

Definition at line 91 of file data_packet.hpp.

◆ encode() [8/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( uint16_t  aValue)
inline

Definition at line 79 of file data_packet.hpp.

◆ encode() [9/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( uint32_t  aValue)
inline

Definition at line 83 of file data_packet.hpp.

◆ encode() [10/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( uint64_t  aValue)
inline

Definition at line 87 of file data_packet.hpp.

◆ encode() [11/12]

◆ encode() [12/12]

template<typename CharType >
void neolib::basic_data_packet< CharType >::encode ( uint8_t  aValue)
inline

Definition at line 75 of file data_packet.hpp.


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