chsvlib
chsv helper source code

◆ mirror_bits() [2/2]

void Chusov::Memory::mirror_bits ( void *  pResult,
const void *  pApi,
std::size_t  cbApi 
)
noexcept

Inverts a bit order of data and writes the result to a possibly different buffer.

Parameters
[out]pResultAn output buffer to receive the inverse data.
[in]pApiPoints to the input data of the byte size given by cbApi.
cbApiSize of the input data, in bytes.

Unlike mirror_bits_kbo, this function inverts both the byte and bit order of the data.