44
int _mi_read_cache(internal::IO_CACHE *info, unsigned char *buff, internal::my_off_t pos, uint32_t length,
38
int _mi_read_cache(IO_CACHE *info, unsigned char *buff, my_off_t pos, uint32_t length,
47
41
uint32_t read_length,in_buff_length;
49
43
unsigned char *in_buff_pos;
51
45
if (pos < info->pos_in_file)
55
49
read_length=(uint) (info->pos_in_file-pos);
57
51
if (my_pread(info->file,buff,read_length,pos,MYF(MY_NABP)))