Bitcoin Core 28.99.0
P2P Digital Currency
Concepts | Functions
common.h File Reference
#include <compat/endian.h>
#include <concepts>
#include <cstddef>
#include <cstdint>
#include <cstring>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Concepts

concept  ByteType
 

Functions

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)
 

Function Documentation

◆ ReadBE16()

template<ByteType B>
uint16_t ReadBE16 ( const B ptr)
inline

Definition at line 64 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadBE32()

template<ByteType B>
uint32_t ReadBE32 ( const B ptr)
inline

Definition at line 72 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadBE64()

template<ByteType B>
uint64_t ReadBE64 ( const B ptr)
inline

Definition at line 80 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadLE16()

template<ByteType B>
uint16_t ReadLE16 ( const B ptr)
inline

Definition at line 19 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadLE32()

template<ByteType B>
uint32_t ReadLE32 ( const B ptr)
inline

Definition at line 27 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadLE64()

template<ByteType B>
uint64_t ReadLE64 ( const B ptr)
inline

Definition at line 35 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteBE16()

template<ByteType B>
void WriteBE16 ( B ptr,
uint16_t  x 
)
inline

Definition at line 88 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteBE32()

template<ByteType B>
void WriteBE32 ( B ptr,
uint32_t  x 
)
inline

Definition at line 95 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteBE64()

template<ByteType B>
void WriteBE64 ( B ptr,
uint64_t  x 
)
inline

Definition at line 102 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteLE16()

template<ByteType B>
void WriteLE16 ( B ptr,
uint16_t  x 
)
inline

Definition at line 43 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteLE32()

template<ByteType B>
void WriteLE32 ( B ptr,
uint32_t  x 
)
inline

Definition at line 50 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteLE64()

template<ByteType B>
void WriteLE64 ( B ptr,
uint64_t  x 
)
inline

Definition at line 57 of file common.h.

Here is the call graph for this function:
Here is the caller graph for this function: