18 #include "transparent_file.h"
21 Transparent_file::Transparent_file() : lower_bound(0), buff_size(IO_SIZE)
23 buff= (uchar *) my_malloc(buff_size*
sizeof(uchar), MYF(MY_WME));
26 Transparent_file::~Transparent_file()
31 void Transparent_file::init_buff(File filedes_arg)
41 uchar *Transparent_file::ptr()
46 my_off_t Transparent_file::start()
51 my_off_t Transparent_file::end()
56 my_off_t Transparent_file::read_next()
72 lower_bound= upper_bound;
73 upper_bound+= bytes_read;
79 char Transparent_file::get_value(my_off_t
offset)
84 if ((lower_bound <= offset) && (((my_off_t) offset) < upper_bound))
85 return buff[offset - lower_bound];
90 MYF(0))) == MY_FILE_ERROR)
94 upper_bound= lower_bound + bytes_read;
97 if (upper_bound == (my_off_t) offset)