#include <compat/endian.h>
#include <concepts>
#include <cstddef>
#include <cstdint>
#include <cstring>
Go to the source code of this file.
|
| template<ByteType B> |
| uint16_t | ReadLE16 (const B *ptr) |
| |
| template<ByteType B> |
| uint32_t | ReadLE32 (const B *ptr) |
| |
| template<ByteType B> |
| uint64_t | ReadLE64 (const B *ptr) |
| |
| template<ByteType B> |
| void | WriteLE16 (B *ptr, uint16_t x) |
| |
| template<ByteType B> |
| void | WriteLE32 (B *ptr, uint32_t x) |
| |
| template<ByteType B> |
| void | WriteLE64 (B *ptr, uint64_t x) |
| |
| template<ByteType B> |
| uint16_t | ReadBE16 (const B *ptr) |
| |
| template<ByteType B> |
| uint32_t | ReadBE32 (const B *ptr) |
| |
| template<ByteType B> |
| uint64_t | ReadBE64 (const B *ptr) |
| |
| template<ByteType B> |
| void | WriteBE16 (B *ptr, uint16_t x) |
| |
| template<ByteType B> |
| void | WriteBE32 (B *ptr, uint32_t x) |
| |
| template<ByteType B> |
| void | WriteBE64 (B *ptr, uint64_t x) |
| |
|
| template<typename B > |
| concept | ByteType = std::same_as<B, unsigned char> || std::same_as<B, std::byte> |
| |
◆ ReadBE16()
template<ByteType B>
| uint16_t ReadBE16 |
( |
const B * |
ptr | ) |
|
|
inline |
◆ ReadBE32()
template<ByteType B>
| uint32_t ReadBE32 |
( |
const B * |
ptr | ) |
|
|
inline |
◆ ReadBE64()
template<ByteType B>
| uint64_t ReadBE64 |
( |
const B * |
ptr | ) |
|
|
inline |
◆ ReadLE16()
template<ByteType B>
| uint16_t ReadLE16 |
( |
const B * |
ptr | ) |
|
|
inline |
◆ ReadLE32()
template<ByteType B>
| uint32_t ReadLE32 |
( |
const B * |
ptr | ) |
|
|
inline |
◆ ReadLE64()
template<ByteType B>
| uint64_t ReadLE64 |
( |
const B * |
ptr | ) |
|
|
inline |
◆ WriteBE16()
template<ByteType B>
| void WriteBE16 |
( |
B * |
ptr, |
|
|
uint16_t |
x |
|
) |
| |
|
inline |
◆ WriteBE32()
template<ByteType B>
| void WriteBE32 |
( |
B * |
ptr, |
|
|
uint32_t |
x |
|
) |
| |
|
inline |
◆ WriteBE64()
template<ByteType B>
| void WriteBE64 |
( |
B * |
ptr, |
|
|
uint64_t |
x |
|
) |
| |
|
inline |
◆ WriteLE16()
template<ByteType B>
| void WriteLE16 |
( |
B * |
ptr, |
|
|
uint16_t |
x |
|
) |
| |
|
inline |
◆ WriteLE32()
template<ByteType B>
| void WriteLE32 |
( |
B * |
ptr, |
|
|
uint32_t |
x |
|
) |
| |
|
inline |
◆ WriteLE64()
template<ByteType B>
| void WriteLE64 |
( |
B * |
ptr, |
|
|
uint64_t |
x |
|
) |
| |
|
inline |
◆ ByteType
template<typename B >
| concept ByteType = std::same_as<B, unsigned char> || std::same_as<B, std::byte> |