Added methods to bio_reader_t to read data from end of buffer