Seperate out the buffer handling functions into a FixedBuffer struct.