Trying to write a buffer from scratch but have nothing