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

#include <binary_data_packet.hpp>

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

Public Types

typedef basic_binary_data_packet< CharType, PacketTraitsour_type
 
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 base_type::string_type string_type
 

Public Member Functions

virtual void encode (uint64_t aValue, std::size_t aLength)
 
virtual void encode (bool aValue)
 
virtual void encode (const string_type &aValue)
 
virtual uint64_t decode_integer (std::size_t aLength) const
 
virtual bool decode_bool () const
 
virtual string_type decode_string () const
 

Detailed Description

template<typename CharType, typename PacketTraits = DefaultPacketTraits>
class neolib::basic_binary_data_packet< CharType, PacketTraits >

Definition at line 51 of file binary_data_packet.hpp.

Member Typedef Documentation

◆ character_type

◆ const_iterator

◆ const_pointer

◆ iterator

◆ our_type

◆ pointer

◆ size_type

◆ string_type

Member Function Documentation

◆ decode_bool()

template<typename CharType , typename PacketTraits = DefaultPacketTraits>
virtual bool neolib::basic_binary_data_packet< CharType, PacketTraits >::decode_bool ( ) const
inlinevirtual

Implements neolib::basic_data_packet< CharType >.

Definition at line 97 of file binary_data_packet.hpp.

◆ decode_integer()

template<typename CharType , typename PacketTraits = DefaultPacketTraits>
virtual uint64_t neolib::basic_binary_data_packet< CharType, PacketTraits >::decode_integer ( std::size_t  aLength) const
inlinevirtual

Implements neolib::basic_data_packet< CharType >.

Definition at line 85 of file binary_data_packet.hpp.

◆ decode_string()

template<typename CharType , typename PacketTraits = DefaultPacketTraits>
virtual string_type neolib::basic_binary_data_packet< CharType, PacketTraits >::decode_string ( ) const
inlinevirtual

Implements neolib::basic_data_packet< CharType >.

Definition at line 101 of file binary_data_packet.hpp.

◆ encode() [1/3]

template<typename CharType , typename PacketTraits = DefaultPacketTraits>
virtual void neolib::basic_binary_data_packet< CharType, PacketTraits >::encode ( bool  aValue)
inlinevirtual

Implements neolib::basic_data_packet< CharType >.

Definition at line 76 of file binary_data_packet.hpp.

◆ encode() [2/3]

template<typename CharType , typename PacketTraits = DefaultPacketTraits>
virtual void neolib::basic_binary_data_packet< CharType, PacketTraits >::encode ( const string_type aValue)
inlinevirtual

Implements neolib::basic_data_packet< CharType >.

Definition at line 80 of file binary_data_packet.hpp.

◆ encode() [3/3]

template<typename CharType , typename PacketTraits = DefaultPacketTraits>
virtual void neolib::basic_binary_data_packet< CharType, PacketTraits >::encode ( uint64_t  aValue,
std::size_t  aLength 
)
inlinevirtual

Implements neolib::basic_data_packet< CharType >.

Definition at line 66 of file binary_data_packet.hpp.


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