Copy NumBits bits from the source pointer and offset into the dest pointer and offset. This function is not suitable for general use because it uses a bit order that is specific to the uint32 internal storage of BitArray