Hi,
I want to store the keys in a big-endian, standard representation, but when I add '>' at the beginning of my key_format string (in the ex_pack.c example):
error_check(wiredtiger_struct_size(session, &size, ">iii", 42, 1000, -9));
if (size > sizeof(buf)) {
/* Allocate a bigger buffer. */
}
I get the following error:
ex_pack: FAILED: main/55: wiredtiger_struct_size(session, &size, ">iii", 42, 1000, -9): Invalid argument
ex_pack: process aborting
WiredTiger Error: __wt_abort, 28: aborting WiredTiger library
Aborted (core dumped)
What am I doing wrong here? I'd really appreciate some help.
Thanks
Praneeth