I'm not of the bit calculations but I'd suppose it would be like
Code:
buffer(0) = <first byte>
buffer(1) = <second byte>
etc.