本文整理汇总了C++中TDesC8::AllocL方法的典型用法代码示例。如果您正苦于以下问题:C++ TDesC8::AllocL方法的具体用法?C++ TDesC8::AllocL怎么用?C++ TDesC8::AllocL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TDesC8
的用法示例。
在下文中一共展示了TDesC8::AllocL方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ConstructL
void CVideoDecoderInfo::ConstructL(const TDesC& aManufacturer,
const TDesC& aIdentifier,
const TArray<CCompressedVideoFormat*>& aSupportedFormats,
const TArray<TPictureRateAndSize>& aMaxPictureRates,
const TDesC8& aCodingStandardSpecificInfo,
const TDesC8& aImplementationSpecificInfo)
{
iManufacturer = aManufacturer.AllocL();
iIdentifier = aIdentifier.AllocL();
iCodingStandardSpecificInfo = aCodingStandardSpecificInfo.AllocL();
iImplementationSpecificInfo = aImplementationSpecificInfo.AllocL();
TInt i=0;
TInt count = aSupportedFormats.Count();
for (i=0; i<count; i++)
{
CCompressedVideoFormat* f = CCompressedVideoFormat::NewL(*(aSupportedFormats[i]));
CleanupStack::PushL(f);
User::LeaveIfError(iSupportedFormats.Append(f));
CleanupStack::Pop(f);
}
count = aMaxPictureRates.Count();
for (i=0; i<count; i++)
{
User::LeaveIfError(iMaxPictureRates.Append(aMaxPictureRates[i]));
}
}
示例2: ConstructL
// ---------------------------------------------------------
// CRoapTrigger::ConstructL()
// ---------------------------------------------------------
//
void CRoapTrigger::ConstructL( const TTriggerType& aTriggerType,
const TDesC8& aRiId,
const TDesC8& aDomainId,
const TDesC8& aRoapUrl,
const RPointerArray<HBufC8>& aRoIdList,
const RPointerArray<HBufC8>& aContentIdList )
{
HBufC8* temp = NULL;
iTriggerType = aTriggerType;
iRiId.Copy( aRiId );
iDomainId = aDomainId.AllocL();
iRoapUrl = aRoapUrl.AllocL();
for( TInt i = 0; i < aRoIdList.Count(); i++ )
{
temp = aRoIdList[i]->AllocLC();
iRoIdList.AppendL( temp );
CleanupStack::Pop(); //temp
}
for( TInt i = 0; i < aContentIdList.Count(); i++ )
{
temp = aContentIdList[i]->AllocLC();
iContentIdList.AppendL( temp );
CleanupStack::Pop(); //temp
}
}
示例3: ConstructL
// ----------------------------------------------------------
// CSimpleNamespace::ConstructL
// ----------------------------------------------------------
//
void CSimpleNamespace::ConstructL(
const TDesC8& aPrefix,
const TDesC8& aUri)
{
iUri = aUri.AllocL();
iPrefix = aPrefix.AllocL();
}
示例4: ConstructL
// ---------------------------------------------------------------------------
// CSTUNSharedSecret::ConstructL
// ---------------------------------------------------------------------------
//
void CSTUNSharedSecret::ConstructL( RSocketServ& aSocketServer,
RConnection& aConnection,
const TInetAddr& aAddr,
const TDesC8& aLtUsername,
const TDesC8& aLtPassword )
{
__STUNTURNCLIENT( "CSTUNSharedSecret::ConstructL" )
iActive = new ( ELeave ) CSTUNSharedSecretActive;
iWaitToRetry = new ( ELeave ) CSTUNSharedSecretWaitToRetry;
iWaitResponse =
new ( ELeave ) CSTUNSharedSecretWaitResponse( *iActive, *iWaitToRetry );
iConnecting = new ( ELeave ) CSTUNSharedSecretConnecting( *iWaitResponse );
iWaitToRetry->SetNeighbourStates( *iWaitResponse );
iState = iConnecting;
if ( aLtUsername.Length() > 0 && aLtPassword.Length() > 0 )
{
iLtUsername = aLtUsername.AllocL();
iLtPassword = aLtPassword.AllocL();
}
iTlsTransport = CNATFWUNSAFTlsTransport::NewL( aSocketServer,
aConnection,
aAddr,
*this );
StartTimer( KTlsHandshakeTimeout );
}
示例5: ConstructL
// ---------------------------------------------------------
// CNSmlCmdsBase::ConstructL
//
// ---------------------------------------------------------
EXPORT_C void CNSmlCmdsBase::ConstructL( CNSmlAgentBase* aAgentBase, const TDesC8& aSessionID, const TDesC8& aVerProto, const TInt aPublicId, const HBufC& aSyncMLUserName, CNSmlURI* aSyncServer, TBool aVersionCheck )
{
iMaxWorkspaceSize = KNSmlDefaultWorkspaceSize;
iAgent = aAgentBase;
iSessionID = aSessionID.AllocL();
iWorkspaceSize = iMaxWorkspaceSize;
iVerProto = aVerProto.AllocL();
iVersionPublicId = aPublicId;
//1.2 CHANGES: 1.1 and 1.2 version support
if ( aPublicId == KNSmlSyncMLPublicId )
{
iVerDTD = KNSmlAgentVerDTD11().AllocL();
}
else
{
iVerDTD = KNSmlAgentVerDTD12().AllocL();
}
//end changes
iVersionCheck = aVersionCheck;
iSyncMLUserName = aSyncMLUserName.AllocL();
iSyncServer = CNSmlURI::NewL( aSyncServer->HostNameWithPortL() );
iPhoneInfo = CNSmlPhoneInfo::NewL();
iStatusToServer = CNSmlStatusContainer::NewL();
iResponseController = CNSmlResponseController::NewL();
iResultsToServer = CNSmlResultsContainer::NewL();
iServerAuth = CNSmlAuth::NewL();
}
示例6: BaseConstructL
EXPORT_C void CSenBaseAttribute::BaseConstructL(const TDesC8& aQName,
const TDesC8& /* aName */,
const TDesC8& aValue)
{
ipValue = aValue.AllocL();
ipName = aQName.AllocL(); // name means nothing here..
}
示例7: ConstructL
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
//
void CSymbianUnitTestFailure::ConstructL(
const TDesC& aTestName,
const TDesC8& aFailureMessage,
const TDesC8& aFileName )
{
iTestName = CnvUtfConverter::ConvertFromUnicodeToUtf8L( aTestName );
iFailureMessage = aFailureMessage.AllocL();
iFileName = aFileName.AllocL();
}
示例8: ConstructL
void CPBEncryptParms::ConstructL(TPBECipher aCipher, const TDesC8& aSalt,
const TDesC8& aIV, TUint aIterations)
{
iData = new(ELeave) TParamsData;
iData->iCipher = aCipher;
iData->iKdf = EKdfPkcs5;
iSalt = aSalt.AllocL();
iIV = aIV.AllocL();
iIterations = aIterations;
}
示例9: ConstructL
void CSenNamespace::ConstructL(const TDesC8& aPrefix, const TDesC8& aUri)
{
if (aPrefix.Length() > -1)
{
ipPrefix = aPrefix.AllocL();
}
if (aUri.Length() > 0)
{
ipUri = aUri.AllocL();
}
}
示例10: AddAttributeL
void CPrimitiveAssertion::AddAttributeL(TDesC8& aQname, TDesC8& aValue)
{
TInt indx = iAttr->Find(aQname);
if(indx == KErrNotFound)
{
iAttr->Append(aQname.AllocL(),aValue.AllocL());
}
else
{
iAttr->UpdateValue(aQname.AllocL(),aValue.AllocL());
}
}
示例11: ConstructL
void CQName::ConstructL(TDesC8& aName, TDesC8& aPrefix, TDesC8& aUri)
{
_LIT8(KColon, ":");
iName = aName.AllocL();
iPrefix = aPrefix.AllocL();
iUri = aUri.AllocL();
iQName = HBufC8::NewL( aPrefix.Length() + KColon().Length() + aName.Length() );
TPtr8 qname = iQName->Des();
qname.Append( aPrefix );
qname.Append( KColon );
qname.Append( aName );
}
示例12: SetSIMFirstPublicUserNameL
// ----------------------------------------------------------------------------
// CSIPProfileSIMRecord::SetSIMFirstPublicUserNameL
// ----------------------------------------------------------------------------
//
void CSIPProfileSIMRecord::SetSIMFirstPublicUserNameL( const TDesC8& aValue )
{
__ASSERT_ALWAYS(aValue.Length(), User::Leave(KErrArgument));
HBufC8* temp = aValue.AllocL();
delete iIMPUsim;
iIMPUsim = temp;
}
示例13: SetMatchUriSchemeL
void CMatchData::SetMatchUriSchemeL(const TDesC8& aMatchUriScheme)
{
delete iMatchUriScheme;
iMatchUriScheme = NULL;
iMatchUriScheme = aMatchUriScheme.AllocL();
}
示例14: SetMatchDataL
void CMatchData::SetMatchDataL(const TDesC8& aMatchData)
{
delete iMatchData;
iMatchData = NULL;
iMatchData = aMatchData.AllocL();
}
示例15: ConstructL
// ---------------------------------------------------------------------------
// CUpnpHttpFileServeTransaction::ConstructL
//
// ---------------------------------------------------------------------------
//
void CUpnpHttpFileServeTransaction::ConstructL(
const TInetAddr& aSender, const TDesC8& aSenderUri )
{
iFilterHeaders = CUpnpDlnaFilterHeaders::NewL( );
iSender = aSender;
iSenderUri = aSenderUri.AllocL();
}