18 #include "myisamdef.h"
20 ha_checksum mi_checksum(
MI_INFO *info,
const uchar *
buf)
26 for (i=info->s->base.fields ; i-- ; buf+=(rec++)->length)
33 length=_mi_calc_blob_length(rec->length-
34 portable_sizeof_char_ptr,
36 memcpy(&pos, buf+rec->length- portable_sizeof_char_ptr,
sizeof(
char*));
41 uint pack_length= HA_VARCHAR_PACKLENGTH(rec->length-1);
43 length= (ulong) *(uchar*)
buf;
45 length= uint2korr(buf);
54 crc=my_checksum(crc, pos ? pos : (uchar*)
"", length);
60 ha_checksum mi_static_checksum(
MI_INFO *info,
const uchar *pos)
62 return my_checksum(0, pos, info->s->base.reclength);