refactor bitbuffer
refactor bitbuffer

No notable performance impact
This may allow code flexibility

elidupree/Lasercake,elidupree/Lasercake,Lasercake/Lasercake,elidupree/Lasercake,elidupree/Lasercake,idupree/Lasercake,Lasercake/Lasercake,idupree/Lasercake,Lasercake/Lasercake,idupree/Lasercake,Lasercake/Lasercake,Lasercake/Lasercake,idupree/Lasercake,idupree/Lasercake,idupree/Lasercake,idupree/Lasercake,elidupree/Lasercake,elidupree/Lasercake,elidupree/Lasercake