Lines Matching refs:cbEncoded
134 uint32_t cbEncoded;
135 int rc = RTAsn1EncodePrepare(pThis->pEncapsulated, fFlags, &cbEncoded, pErrInfo);
138 pThis->Asn1Core.cb = 1 + cbEncoded;
139 pThis->cBits = cbEncoded * 8;
140 AssertReturn(pThis->cBits / 8 == cbEncoded, RTErrInfoSetF(pErrInfo, VERR_TOO_MUCH_DATA, "cbEncoded=%#x", cbEncoded));
142 rc = RTAsn1ContentReallocZ(&pThis->Asn1Core, cbEncoded + 1, pAllocator);
150 Ctx.cbBuf = cbEncoded + 1;
157 if (Ctx.offBuf == cbEncoded + 1)
160 rc = RTErrInfoSetF(pErrInfo, rc, "Expected %#x + 1 bytes, got %#x", cbEncoded, Ctx.offBuf);
164 rc = RTErrInfoSetF(pErrInfo, rc, "Error allocating %#x + 1 bytes for storing content\n", cbEncoded);
178 uint32_t cbEncoded;
179 int rc = RTAsn1EncodePrepare(pThis->pEncapsulated, fFlags, &cbEncoded, NULL);
182 if (pThis->Asn1Core.cb != 1 + cbEncoded)
186 if (cbEncoded)
198 Ctx.cbBuf = cbEncoded + 1;
226 uint32_t cbEncoded;
227 int rc = RTAsn1EncodePrepare(pThis->pEncapsulated, fFlags, &cbEncoded, pErrInfo);
233 bool fMustFree = pThis->Asn1Core.cb != 1 + cbEncoded || (pThis->cBits & 7);
238 Ctx.cbBuf = 1 + cbEncoded;
253 pThis->Asn1Core.cb = 1 + cbEncoded;
254 pThis->cBits = cbEncoded * 8;