partial indefinite lenght stuff
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c
index 7544e84..a02a06e 100644
--- a/src/qcbor_decode.c
+++ b/src/qcbor_decode.c
@@ -191,6 +191,12 @@
pCtx->pStringAllocator = (void *)pAllocator;
}
+const QCBORStringAllocator *QCBORDecode_GetAllocator(QCBORDecodeContext *pCtx)
+{
+ return pCtx->pStringAllocator;
+}
+
+
/*
This decodes the fundamental part of a CBOR data item, the type and number
@@ -668,9 +674,8 @@
UsefulBuf XX(QCBORStringAllocator *pAlloc, UsefulBufC yy, size_t add)
{
- // TODO: what about allocator context?
// TODO: pointer arithmatic
- uint8_t *x = (*pAlloc->AllocatorFunction) (yy.ptr, yy.len + add );
+ uint8_t *x = (*pAlloc->AllocatorFunction) (pAlloc->pAllocaterContext, yy.ptr, yy.len + add );
return (UsefulBuf) {x, yy.len + add};
}
@@ -800,6 +805,21 @@
+/*
+
+ Use the 64-bit map. 48 8-bit tags built in, 1 16 bit tag, 15 64-bit tags can be assigned as of interest
+
+ There is a tag map.
+
+ TODO: how does tinyCBOR do it?
+
+
+
+
+
+ */
+
+
/*
Decoder errors handled in this file