Module dlib.core.bitio

Bit-level manipulations

Functions

NameDescription
getBit(b, pos) Returns bit at position pos in integer b
hiNibble(b) Returns high 4 bits of a byte
loNibble(b) Returns low 4 bits of a byte
setBit(b, pos, state) Sets bit at position pos in integer b to state
swapEndian16(n) Returns 16-bit integer n with swapped endianness

Enums

NameDescription
Endian Endianness