本文整理汇总了C++中TBuf8::AppendFormatList方法的典型用法代码示例。如果您正苦于以下问题:C++ TBuf8::AppendFormatList方法的具体用法?C++ TBuf8::AppendFormatList怎么用?C++ TBuf8::AppendFormatList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TBuf8
的用法示例。
在下文中一共展示了TBuf8::AppendFormatList方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Printf
void Logging::Printf(const TDesC8& /*aSubTag*/, TLogEntryType aType, TRefByValue<const TDesC8> aFmt, VA_LIST& aList)
{
TBuf8<250> buf;
TLogIgnoreOverflow8 overflowHandler;
buf.AppendFormatList(aFmt, aList, &overflowHandler);
UTracePfAny(KPrimaryFilter, KText, ETrue, EFalse, aType, buf.Ptr(), buf.Size());
}
示例2: LogText
void CImapIO::LogText(TRefByValue<const TDesC8> aFmt,...)
{
VA_LIST list;
VA_START(list,aFmt);
TBuf8<1024> aBuf;
aBuf.AppendFormatList(aFmt,list);
LogText(aBuf);
}
示例3:
void CTestStepC32Util::Log(TRefByValue<const TDesC8> aFormat, ...)
{
VA_LIST vaList;
VA_START( vaList, aFormat );
TTruncateOverflow8 truncateOverflow;
TBuf8<512> buf;
buf.AppendFormatList( aFormat, vaList, &truncateOverflow );
Logger().Write(buf);
}
示例4: WriteFormat
EXPORT_C void TcLog::WriteFormat( TRefByValue< const TDesC8 > aFormat, ... )
{
VA_LIST list;
VA_START( list, aFormat );
TBuf8< KTcBufferSize > buf;
TTcDes8Overflow handler;
buf.AppendFormatList( aFormat, list, &handler );
Write( buf );
}
示例5: LogL
void CSWICertStoreTool::LogL(TRefByValue<const TDesC8> aFmt, ...)
{
TBuf8<KMaxLineLength> buf;
VA_LIST args;
VA_START(args, aFmt);
buf.AppendFormatList(aFmt, args);
VA_END(args);
User::LeaveIfError(iLogFile.Write(buf));
User::LeaveIfError(iLogFile.Write(KNewLine));
User::LeaveIfError(iLogFile.Flush());
}
示例6: WriteNoReturn
void CActiveConsole::WriteNoReturn(TRefByValue<const TDesC8> aFmt, ...)
{
VA_LIST list;
VA_START(list, aFmt);
TBuf8<0x100> buf;
buf.AppendFormatList(aFmt, list);
TBuf<0x100> wideBuf;
wideBuf.Copy(buf);
iConsole.Write(wideBuf);
(void)RDebug::Print(wideBuf);
}
示例7: Log
void CTestStepESockUtil::Log(TRefByValue<const TDesC8> aFormat, ...)
{
VA_LIST vaList;
VA_START( vaList, aFormat );
TTruncateOverflow8 truncateOverflow;
TBuf8<512> buf;
buf.AppendFormatList( aFormat, vaList, &truncateOverflow );
TBuf<512> dispBuf;
dispBuf.Copy(buf);
// write to the console
CTestStep::Log(_L("%S"), &dispBuf);
}
示例8: OstPrintf
/**
Prints a formatted string by outputting a trace packet with the Trace ID KFormatPrintf.
If the specified string is too long to fit into a single trace packet
a multipart trace is generated.
@deprecated
@param aContext The trace packet context. @see TTraceContext
@param aFmt The format string. This must not be longer than 256 characters.
@param ... A variable number of arguments to be converted to text as dictated
by the format string.
@return The trace packet was/was not output.
@See BTrace::TMultipart
*/
EXPORT_C TBool OstPrintf(const TTraceContext& aContext, TRefByValue<const TDesC8> aFmt,...)
{
if(IsTraceActive(aContext))
{
GET_PC(pc);
TTruncateOverflow8 overflow;
VA_LIST list;
VA_START(list,aFmt);
TBuf8<KMaxPrintfSize> buf;
// coverity[uninit_use_in_call : FALSE]
buf.AppendFormatList(aFmt,list,&overflow);
return OST_SECONDARY_ANY(aContext.GroupId(), aContext.ComponentId(), aContext.HasThreadIdentification(), aContext.HasProgramCounter(), pc, KFormatPrintf, buf.Ptr(), buf.Size());
}
return EFalse;
}
示例9: WriteNoReturn
void CActiveConsole::WriteNoReturn(TRefByValue<const TDesC8> aFmt, ...)
{
OstTraceFunctionEntry0( CACTIVECONSOLE_WRITENORETURN_ENTRY );
VA_LIST list;
VA_START(list, aFmt);
TBuf8<0x100> buf;
buf.AppendFormatList(aFmt, list);
TBuf<0x100> wideBuf;
wideBuf.Copy(buf);
iConsole.Write(wideBuf);
RDebug::Print(wideBuf);
OstTraceFunctionExit0( CACTIVECONSOLE_WRITENORETURN_EXIT );
}
示例10:
void CMainControlEngine::WriteLog8(TRefByValue<const TDesC8> aFmt, ...)
{
#ifdef __WRITE_LOG__
//UtilityTools::WriteLogsL(_L("WriteLog8"));
TBuf8<400> tBuf;
VA_LIST list;
VA_START(list,aFmt);
tBuf.Zero();
tBuf.AppendFormatList(aFmt,list);
VA_END(list);
TBuf<64> time16;
TBuf8<64> time8;
TTime tTime;
tTime.HomeTime();
tTime.FormatL(time16, _L("%D%M%Y%2/%3 %H:%T:%S "));
time8.Copy(time16);
iFile.Write(time8);
iFile.Write(tBuf);
iFile.Write(_L8("\x0a\x0d"));
//UtilityTools::WriteLogsL(_L("WriteLog8 End"));
#endif
}