Lines Matching refs:pSrc
104 static int rtAsn1Core_CloneEx(PRTASN1CORE pThis, PCRTASN1CORE pSrc, PCRTASN1ALLOCATORVTABLE pAllocator, bool fCopyContent)
106 Assert(RTASN1CORE_IS_PRESENT(pSrc));
107 pThis->uTag = pSrc->uTag;
108 pThis->fClass = pSrc->fClass;
109 pThis->uRealTag = pSrc->uRealTag;
110 pThis->fRealClass = pSrc->fRealClass;
111 pThis->cbHdr = pSrc->cbHdr;
112 pThis->fFlags = pSrc->fFlags & ~(RTASN1CORE_F_ALLOCATED_CONTENT | RTASN1CORE_F_DECODED_CONTENT);
113 pThis->pOps = pSrc->pOps;
116 if (pSrc->cb)
119 pThis->cb = pSrc->cb;
122 int rc = RTAsn1ContentDup(pThis, pSrc->uData.pv, pSrc->cb, pAllocator);
128 Assert(pThis->cb == pSrc->cb);
136 RTDECL(int) RTAsn1Core_CloneContent(PRTASN1CORE pThis, PCRTASN1CORE pSrc, PCRTASN1ALLOCATORVTABLE pAllocator)
138 return rtAsn1Core_CloneEx(pThis, pSrc, pAllocator, true /*fConpyContent*/);
142 RTDECL(int) RTAsn1Core_CloneNoContent(PRTASN1CORE pThis, PCRTASN1CORE pSrc)
144 return rtAsn1Core_CloneEx(pThis, pSrc, NULL, false /*fConpyContent*/);
212 RTDECL(int) RTAsn1Core_Clone(PRTASN1CORE pThis, PCRTASN1CORE pSrc, PCRTASN1ALLOCATORVTABLE pAllocator)
216 if (RTASN1CORE_IS_PRESENT(pSrc))
218 Assert(pSrc->pOps == &g_RTAsn1Core_Vtable);
220 rc = RTAsn1Core_CloneContent(pThis, pSrc, pAllocator);