how about.....
? Putbit = BufferByteIndex * 8 + BufferBitIndex

BufferByteIndex * 8 + BufferBitIndex = Putbit (put bit in array)