Write a 16‐bit integer to a byte buffer in little‐endian order.

Synopsis

Declared in <crypto/common.h>

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

Parameters

Name

Description

ptr

Pointer to at least 2 writable bytes.

x

The host‐order value to store.

Created with MrDocs