Changed 'dest' parameter from a reference to pointer in the buffer_read methods