codex
Loading...
Searching...
No Matches
packet_reader.hpp File Reference
#include <array>
#include <cassert>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <span>
Include dependency graph for packet_reader.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  codex::Packet
 Wrapper for a raw byte buffer with methods to extract data from it. More...
 

Namespaces

namespace  codex
 

Concepts

concept  codex::Readable
 Identifies whether a C++ type can be read from a buffer.
 

Typedefs

using codex::ReadResult = bool
 Arbitrary return type which could be replaced with a more detailed type.
 

Enumerations

enum class  codex::Type : uint8_t {
  codex::INVALID , codex::INT , codex::FLOAT , codex::INVALID ,
  codex::INT , codex::FLOAT
}
 Data types that can be read from a buffer. More...
 

Variables

template<typename T >
constexpr Type codex::type_to_enum = Type::INVALID
 Mapping from Type to C++ types.
 
template<>
constexpr Type codex::type_to_enum< int > = Type::INT
 
template<>
constexpr Type codex::type_to_enum< float > = Type::FLOAT