null checks
Moved to BitBuffer implementation for bit-shifting