Static Public Member Functions | List of all members
ion::Bitwise Class Reference

Tools for bitwise operations. More...

#include <Bitwise.h>

Static Public Member Functions

static uint BitsToByte (vector< uint > const &bits)
 Converts a vector of 0 or 1 bits to binary representation. More...
 
static vector< uintByteToBits (uint const Byte)
 Extract the bits of a byte to a vector of 0 or 1 values Note that only the first 8 bits of Byte are examined. More...
 
static uint BitCount (uint i)
 Counts the number of set bits. More...
 

Detailed Description

Tools for bitwise operations.

Member Function Documentation

uint ion::Bitwise::BitCount ( uint  i)
static

Counts the number of set bits.

uint ion::Bitwise::BitsToByte ( vector< uint > const &  bits)
static

Converts a vector of 0 or 1 bits to binary representation.

vector< uint > ion::Bitwise::ByteToBits ( uint const  Byte)
static

Extract the bits of a byte to a vector of 0 or 1 values Note that only the first 8 bits of Byte are examined.


The documentation for this class was generated from the following files: