Skip to content

intx:🇧🇪:unsafe

Functions

Name
template <typename IntT >
IntT
load(const uint8_t * bytes)
template <unsigned N>
void
store(uint8_t * dst, const intx::uint< N > & x)

Functions Documentation

function load

template <typename IntT >
inline IntT load(
    const uint8_t * bytes
)

Loads an uint value from a buffer. The user must make sure that the provided buffer is big enough. Therefore marked "unsafe".

function store

template <unsigned N>
inline void store(
    uint8_t * dst,
    const intx::uint< N > & x
)

Stores an uint value at the provided pointer in big-endian order. The user must make sure that the provided buffer is big enough to fit the value. Therefore marked "unsafe".


Updated on 2026-04-13 at 23:22:46 -0700