Write the first bytes to the buffer correctly.