-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi,
I would like to use your library, but I have no idea how to write even a simple example. Could you provide such an example, please?
I wrote some lines of code:
int val = 13;
wandder_encoder_t *enc = init_wandder_encoder();
wandder_encode_next(enc, WANDDER_TAG_INTEGER, WANDDER_CLASS_UNIVERSAL_PRIMITIVE, 1, &val, sizeof(val));
auto result = wandder_encode_finish(enc);
free_wandder_encoder(enc);
but the result is the following:
Encode error: not enough space for value
a.out: src/encoder.c:739: encode_pending: Assertion `0' failed.
Aborted (core dumped)
Metadata
Metadata
Assignees
Labels
No labels