Lines Matching refs:pSrc
112 RTDECL(int) RTAsn1Boolean_Clone(PRTASN1BOOLEAN pThis, PCRTASN1BOOLEAN pSrc, PCRTASN1ALLOCATORVTABLE pAllocator)
114 AssertPtr(pSrc); AssertPtr(pThis); AssertPtr(pAllocator);
116 if (RTAsn1Boolean_IsPresent(pSrc))
118 AssertReturn(pSrc->Asn1Core.pOps == &g_RTAsn1Boolean_Vtable, VERR_INTERNAL_ERROR_3);
119 AssertReturn(pSrc->Asn1Core.cb <= 1, VERR_INTERNAL_ERROR_4);
122 if ( pSrc->Asn1Core.cb == 1
123 && pSrc->Asn1Core.uData.pu8[0] != 0x00
124 && pSrc->Asn1Core.uData.pu8[0] != 0xff)
127 rc = RTAsn1Core_CloneContent(&pThis->Asn1Core, &pSrc->Asn1Core, pAllocator);
134 rc = RTAsn1Core_CloneNoContent(&pThis->Asn1Core, &pSrc->Asn1Core);
137 pThis->Asn1Core.uData.pv = (void *)(pSrc->fValue ? &g_bTrue : &g_bFalse);
139 pThis->fValue = pSrc->fValue;