本文整理汇总了C++中TDes::ZeroTerminate方法的典型用法代码示例。如果您正苦于以下问题:C++ TDes::ZeroTerminate方法的具体用法?C++ TDes::ZeroTerminate怎么用?C++ TDes::ZeroTerminate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TDes
的用法示例。
在下文中一共展示了TDes::ZeroTerminate方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetEpocWindFilename
// -----------------------------------------------------------------------------
// CEcmtEmuConfigPlugin::GetEpocWindFilename
//
// -----------------------------------------------------------------------------
//
void CEcmtEmuConfigPlugin::GetEpocWindFilename( TDes& aBuff ) const
{
aBuff.Copy( EcmtOsUtils::TempDir() );
_LIT( KEpocWind, "epocwind.out" );
aBuff += KEpocWind;
aBuff.ZeroTerminate();
}
示例2: GetEpocIniFilename
// -----------------------------------------------------------------------------
// CEcmtEmuConfigPlugin::GetEpocIniFilename
//
// -----------------------------------------------------------------------------
//
void CEcmtEmuConfigPlugin::GetEpocIniFilename( TDes& aBuff ) const
{
aBuff.Copy( EcmtOsUtils::Epocroot() );
_LIT( KEpocIni, "epoc32\\data\\epoc.ini" );
aBuff += KEpocIni;
aBuff.ZeroTerminate();
}
示例3: GetScalableIniFilename
// -----------------------------------------------------------------------------
// CEcmtEmuConfigPlugin::GetScalableIniFilename
//
// -----------------------------------------------------------------------------
//
void CEcmtEmuConfigPlugin::GetScalableIniFilename( TPtrC8 aName, TDes& aBuff ) const
{
TBuf<KMaxWin32Path> temp;
temp.Copy( aName );
aBuff.Copy( EcmtOsUtils::Epocroot() );
_LIT( KEpocIni, "epoc32\\data\\" );
aBuff += KEpocIni;
aBuff += temp;
aBuff.ZeroTerminate();
}
示例4: GetEskFilename
// -----------------------------------------------------------------------------
// Shared by GetBtEskFilename and GetIrdaEskFilename
// -----------------------------------------------------------------------------
static void GetEskFilename( TDes& aBuff, const TDesC& aFileName )
{
TInt maxLen = aBuff.MaxLength();
aBuff.SetLength(maxLen);
::GetModuleFileName(NULL, &(aBuff[0]), maxLen);
aBuff[aBuff.MaxLength() - 1] = 0;
aBuff.SetLength(User::StringLength(aBuff.Ptr()));
aBuff.SetLength(aBuff.LocateReverse('\\') + 1);
aBuff.Append(_L( "z\\private\\101f7989\\ESock\\"));
aBuff.Append(aFileName);
aBuff.ZeroTerminate();
}
示例5: GetErrRdFilename
// -----------------------------------------------------------------------------
// CEcmtEmuConfigPlugin::GetErrRdFilename
//
// -----------------------------------------------------------------------------
//
void CEcmtEmuConfigPlugin::GetErrRdFilename( TDes& aBuff ) const
{
aBuff.Copy( EcmtOsUtils::Epocroot() );
#ifdef __WINSCW__
_LIT( KErrRd, "epoc32\\winscw\\c\\resource\\ErrRd" );
#else
_LIT( KErrRd, "epoc32\\wins\\c\\resource\\ErrRd" );
#endif
aBuff += KErrRd;
aBuff.ZeroTerminate();
}