chsvlib
chsv helper source code

◆ memnot_inplace()

void Chusov::Memory::memnot_inplace ( void *  pSrcDest,
std::size_t  cbSrcDest 
)
noexcept

Computes bitwise NOT of value in place of its buffer.

Parameters
[in,out]pSrcDestA pointer to a buffer with a value subjected to bitwise NOT in place.
cbSrcDestA size of the value pointed to by pSrcDest.

For the operation it is irrelevant whether bytes of the integers are specified in the Little-Endian or Big-Endian order.

To preserve the input value and copy the result of the operation into a separate buffer, use memnot_copy (faster), memnot_LE or memnot_BE.

The memnot_LE and memnot_BE functions allow variable-sized and possibly overlapping input and output buffers.

See also
memnot_copy;
memnot_LE;
memnot_BE;
memand_LE, memand_BE;
memor_LE, memor_BE;
memxor_LE, memxor_BE;
memandnot_LE, memandnot_BE;
memornot_LE, memornot_BE;
memxornot_LE, memxornot_BE.