#include <cstdint>
#include <cstring>
#include <compat/endian.h>
Go to the source code of this file.
|
static uint16_t | ReadLE16 (const uint8_t *ptr) |
|
static uint32_t | ReadLE32 (const uint8_t *ptr) |
|
static uint64_t | ReadLE64 (const uint8_t *ptr) |
|
static void | WriteLE16 (uint8_t *ptr, uint16_t x) |
|
static void | WriteLE32 (uint8_t *ptr, uint32_t x) |
|
static void | WriteLE64 (uint8_t *ptr, uint64_t x) |
|
static uint16_t | ReadBE16 (const uint8_t *ptr) |
|
static uint32_t | ReadBE32 (const uint8_t *ptr) |
|
static uint64_t | ReadBE64 (const uint8_t *ptr) |
|
static void | WriteBE32 (uint8_t *ptr, uint32_t x) |
|
static void | WriteBE64 (uint8_t *ptr, uint64_t x) |
|
static uint64_t | CountBits (uint64_t x) |
| Return the smallest number n such that (x >> n) == 0 (or 64 if the highest bit in x is set. More...
|
|
◆ CountBits()
static uint64_t CountBits |
( |
uint64_t |
x | ) |
|
|
inlinestatic |
Return the smallest number n such that (x >> n) == 0 (or 64 if the highest bit in x is set.
Definition at line 82 of file common.h.
◆ ReadBE16()
static uint16_t ReadBE16 |
( |
const uint8_t * |
ptr | ) |
|
|
inlinestatic |
◆ ReadBE32()
static uint32_t ReadBE32 |
( |
const uint8_t * |
ptr | ) |
|
|
inlinestatic |
◆ ReadBE64()
static uint64_t ReadBE64 |
( |
const uint8_t * |
ptr | ) |
|
|
inlinestatic |
◆ ReadLE16()
static uint16_t ReadLE16 |
( |
const uint8_t * |
ptr | ) |
|
|
inlinestatic |
◆ ReadLE32()
static uint32_t ReadLE32 |
( |
const uint8_t * |
ptr | ) |
|
|
inlinestatic |
◆ ReadLE64()
static uint64_t ReadLE64 |
( |
const uint8_t * |
ptr | ) |
|
|
inlinestatic |
◆ WriteBE32()
static void WriteBE32 |
( |
uint8_t * |
ptr, |
|
|
uint32_t |
x |
|
) |
| |
|
inlinestatic |
◆ WriteBE64()
static void WriteBE64 |
( |
uint8_t * |
ptr, |
|
|
uint64_t |
x |
|
) |
| |
|
inlinestatic |
◆ WriteLE16()
static void WriteLE16 |
( |
uint8_t * |
ptr, |
|
|
uint16_t |
x |
|
) |
| |
|
inlinestatic |
◆ WriteLE32()
static void WriteLE32 |
( |
uint8_t * |
ptr, |
|
|
uint32_t |
x |
|
) |
| |
|
inlinestatic |
◆ WriteLE64()
static void WriteLE64 |
( |
uint8_t * |
ptr, |
|
|
uint64_t |
x |
|
) |
| |
|
inlinestatic |