read the key and keylen of the current record
read the key and keylen of the current recordparameter index specifies which of the keys to read
RESTRICTIONS:
- the out parameter okey must point to a memory area that is big enough to hold any possible key, i.e 255 bytes