You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an issue but I don't know where I can ask question about the API.
So I am trying to use qcbor using a simple structure but it's difficult to understand how the API works just by reading the source. I'm stuck in the beginning with the second parameter of QCBOREncode_Init function.
This parameter is supposed to be the buffer after encoding. Looking at example.c and test/qcbor_encode_tests.c the size of the buffer doesn't seem to be calculated. For one case, the declaration is static uint8_t spBigBuf[2200] and for the other case MakeUsefulBufOnStack( EngineBuffer, 300).
Is there a way to give the real size for the buffer ?
I have another question. In which case should I use MakeUsefulBufOnStack or UsefulBuf_FROM_BYTE_ARRAY ?
The text was updated successfully, but these errors were encountered:
Improve the documentation for QCBOREncode_Init() and QCBOREncode_Finish().
replace all use of the deprecated macro MakeUsefulBufOnStack().
Address #62
Co-authored-by: Laurence Lundblade <lgl@securitytheory.com>
Hi,
This is not an issue but I don't know where I can ask question about the API.
So I am trying to use qcbor using a simple structure but it's difficult to understand how the API works just by reading the source. I'm stuck in the beginning with the second parameter of QCBOREncode_Init function.
This parameter is supposed to be the buffer after encoding. Looking at example.c and test/qcbor_encode_tests.c the size of the buffer doesn't seem to be calculated. For one case, the declaration is
static uint8_t spBigBuf[2200]
and for the other caseMakeUsefulBufOnStack( EngineBuffer, 300)
.Is there a way to give the real size for the buffer ?
I have another question. In which case should I use
MakeUsefulBufOnStack
orUsefulBuf_FROM_BYTE_ARRAY
?The text was updated successfully, but these errors were encountered: