-- got it working with Mark's help. It turns out the increment function is complete: you pass it an ordinary integer, and the API will perform the endian conversion itself. Only when performing an add do you need to do a little-endian to big-endian conversion, and then again when getting the value back:
-- got it working with Mark's help.
It turns out the increment function is complete: you pass it an ordinary
integer, and the API will perform the endian conversion itself.
Only when performing an add do you need to do a little-endian to
big-endian conversion, and then again when getting the value back:

record is a char* pointing to the integer byte values: we need to
first derefernce as a 8 byte integer, then convert the bytes
back from big endian.
currValue = kyotocabinet::ntoh64(*((uint64_t*)record));

adderan/sonLib,adderan/sonLib,benedictpaten/sonLib,benedictpaten/sonLib,benedictpaten/sonLib,benedictpaten/sonLib,benedictpaten/sonLib,adderan/sonLib,adderan/sonLib,adderan/sonLib