intel / intel/tinycbor

cbor_encoder_create_array() returns CborErrorOutOfMemory (0x80000000)

Open
#163 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
630
Forks
222
Avg merge
1d 3h
Merged PRs (30d)
1

Description

Hi,
the code bellow causes that cbor_encoder_create_array returns CborErrorOutOfMemory.
```c
CborEncoder enc, array_enc;
u8_t buf[16];
cbor_encoder_init(&enc, buf, sizeof(buf), 0);
int res = 0;
res = cbor_encoder_create_array(&enc, &array_enc, 1);
```
How to create a CBOR array? Can you point me to some example. Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.