roo_io
API Documentation for roo_io
Loading...
Searching...
No Matches
byte_order.h File Reference
#include <inttypes.h>
#include "roo_io/third_party/endianness.h"
Include dependency graph for byte_order.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  roo_io::byte_order::Swapper< uint8_t >
 
struct  roo_io::byte_order::Swapper< uint16_t >
 
struct  roo_io::byte_order::Swapper< uint32_t >
 
struct  roo_io::byte_order::Swapper< uint64_t >
 
struct  roo_io::byte_order::Converter< storage_type, src, dst >
 
struct  roo_io::byte_order::Converter< storage_type, byte_order, byte_order >
 

Namespaces

namespace  roo_io
 
namespace  roo_io::byte_order
 

Enumerations

enum  roo_io::ByteOrder { roo_io::kLittleEndian = 0 , roo_io::kBigEndian = 1 }
 

Functions

template<typename storage_type >
constexpr storage_type roo_io::byte_order::Swap (storage_type in)
 
template<typename storage_type , ByteOrder src, ByteOrder dst>
constexpr storage_type roo_io::byte_order::Convert (storage_type in)
 
template<typename storage_type >
constexpr storage_type roo_io::bswap (storage_type in)
 
template<typename storage_type , ByteOrder dst>
constexpr storage_type roo_io::hto (storage_type in)
 
template<typename storage_type , ByteOrder src>
constexpr storage_type roo_io::toh (storage_type in)
 
template<typename storage_type >
constexpr storage_type roo_io::htobe (storage_type in)
 
template<typename storage_type >
constexpr storage_type roo_io::htole (storage_type in)
 
template<typename storage_type >
constexpr storage_type roo_io::betoh (storage_type in)
 
template<typename storage_type >
constexpr storage_type roo_io::letoh (storage_type in)