Lines Matching defs:cComponents

70  * @param   cComponents     The number of components. Must be at least two.
76 static int rtAsn1ObjId_EncodeComponents(uint32_t cComponents, uint32_t const *pauComponents,
84 AssertReturn(cComponents >= 2, VERR_ASN1_INTERNAL_ERROR_1);
144 if (i >= cComponents)
176 uint32_t cComponents = 1;
195 cComponents++;
229 cComponents++;
232 if (RT_UNLIKELY(cComponents >= 128))
234 pThis->cComponents = (uint8_t)cComponents;
244 if (cbLeft >= cComponents * sizeof(uint32_t))
246 pThis->pauComponents = (uint32_t *)&pThis->szObjId[sizeof(pThis->szObjId) - cComponents * sizeof(uint32_t)];
247 cbLeft -= cComponents * sizeof(uint32_t);
252 rc = RTAsn1MemAllocZ(&pThis->Allocation, (void **)&pThis->pauComponents, cComponents * sizeof(uint32_t));
261 for (uint32_t i = 0; i < cComponents; i++)
301 rc = rtAsn1ObjId_EncodeComponents(cComponents, pThis->pauComponents,
355 return pThis->cComponents;
361 if (iComponent < pThis->cComponents)
369 return pThis->pauComponents[pThis->cComponents - 1];
403 pThis->cComponents = RT_ELEMENTS(g_auDefault);
430 pThis->cComponents = pSrc->cComponents;
433 if (pSrc->cComponents * sizeof(uint32_t) <= cbLeft)
435 pThis->pauComponents = (uint32_t *)&pThis->szObjId[sizeof(pThis->szObjId) - pSrc->cComponents * sizeof(uint32_t)];
436 memcpy((uint32_t *)pThis->pauComponents, pSrc->pauComponents, pSrc->cComponents * sizeof(uint32_t));
437 cbLeft -= pSrc->cComponents * sizeof(uint32_t);
444 pSrc->cComponents * sizeof(uint32_t));
511 uint8_t cComponents = RT_MIN(pLeft->cComponents, pRight->cComponents);
512 for (uint32_t i = 0; i < cComponents; i++)
516 if (pLeft->cComponents == pRight->cComponents)
518 return pLeft->cComponents < pRight->cComponents ? -1 : 1;