WriteBE16

Write a 16-bit integer to a byte buffer in big-endian order.

Synopsis

Declared in <crypto/common.h>

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

Parameters

NameDescription
ptrPointer to at least 2 writable bytes.
xThe host-order value to store.