aether::netcode::transcode::boolean Struct Reference

Encodes a boolean value using 1 bit. More...

#include <transcode.hh>

Public Types

using Item = bool
 

Public Member Functions

bool encode (const bool &input, bit_appender &w) override final
 
bool decode (bit_stream &r, bool &out) override final
 
virtual bool encode_stream (io::reader &r, bit_appender &w)
 
virtual bool decode_stream (bit_stream &r, io::writer &w)
 

Static Public Attributes

static constexpr size_t bit_size = 1
 

Detailed Description

Encodes a boolean value using 1 bit.

Member Typedef Documentation

using aether::netcode::transcode::transcode_base< bool >::Item = bool
inherited

Member Function Documentation

bool aether::netcode::transcode::boolean::decode ( bit_stream r,
bool &  out 
)
inlinefinaloverridevirtual
virtual bool aether::netcode::transcode::transcode_base< bool >::decode_stream ( bit_stream r,
io::writer w 
)
inlinevirtualinherited
bool aether::netcode::transcode::boolean::encode ( const bool &  input,
bit_appender w 
)
inlinefinaloverridevirtual
virtual bool aether::netcode::transcode::transcode_base< bool >::encode_stream ( io::reader r,
bit_appender w 
)
inlinevirtualinherited

Member Data Documentation

constexpr size_t aether::netcode::transcode::boolean::bit_size = 1
static