Home
last modified time | relevance | path

Searched refs:pNesting (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/lib/qcbor/src/
H A Dqcbor_encode.c77 Nesting_Init(QCBORTrackNesting *pNesting) in Nesting_Init() argument
80 pNesting->pCurrentNesting = &pNesting->pArrays[0]; in Nesting_Init()
84 pNesting->pCurrentNesting->uMajorType = CBOR_MAJOR_TYPE_ARRAY; in Nesting_Init()
88 Nesting_Increase(QCBORTrackNesting *pNesting, in Nesting_Increase() argument
92 if(pNesting->pCurrentNesting == &pNesting->pArrays[QCBOR_MAX_ARRAY_NESTING]) { in Nesting_Increase()
95 pNesting->pCurrentNesting++; in Nesting_Increase()
96 pNesting->pCurrentNesting->uCount = 0; in Nesting_Increase()
97 pNesting->pCurrentNesting->uStart = uPos; in Nesting_Increase()
98 pNesting->pCurrentNesting->uMajorType = uMajorType; in Nesting_Increase()
104 Nesting_Decrease(QCBORTrackNesting *pNesting) in Nesting_Decrease() argument
[all …]
H A Dqcbor_decode.c206 DecodeNesting_GetCurrentLevel(const QCBORDecodeNesting *pNesting) in DecodeNesting_GetCurrentLevel() argument
208 const ptrdiff_t nLevel = pNesting->pCurrent - &(pNesting->pLevels[0]); in DecodeNesting_GetCurrentLevel()
217 DecodeNesting_GetBoundedModeLevel(const QCBORDecodeNesting *pNesting) in DecodeNesting_GetBoundedModeLevel() argument
219 const ptrdiff_t nLevel = pNesting->pCurrentBounded - &(pNesting->pLevels[0]); in DecodeNesting_GetBoundedModeLevel()
228 DecodeNesting_GetMapOrArrayStart(const QCBORDecodeNesting *pNesting) in DecodeNesting_GetMapOrArrayStart() argument
230 return pNesting->pCurrentBounded->u.ma.uStartOffset; in DecodeNesting_GetMapOrArrayStart()
235 DecodeNesting_IsBoundedEmpty(const QCBORDecodeNesting *pNesting) in DecodeNesting_IsBoundedEmpty() argument
237 if(pNesting->pCurrentBounded->u.ma.uCountCursor == QCBOR_COUNT_INDICATES_ZERO_LENGTH) { in DecodeNesting_IsBoundedEmpty()
246 DecodeNesting_IsCurrentAtTop(const QCBORDecodeNesting *pNesting) in DecodeNesting_IsCurrentAtTop() argument
248 if(pNesting->pCurrent == &(pNesting->pLevels[0])) { in DecodeNesting_IsCurrentAtTop()
[all …]