//格式化写,返回写入的总长度。 //-1:IO错误, -2:IO中断或满, -3:参数错误 AFS_API int32 Print(const char* sFormat, ...) { CVaList pArgList; VaStart(pArgList, sFormat); int32 nRet = PrintV(sFormat, pArgList); VaEnd(pArgList); return nRet; }
void PdfOutputDevice::Print( const char* pszFormat, ... ) { va_list args; long lBytes; va_start( args, pszFormat ); lBytes = PrintVLen(pszFormat, args); va_end( args ); va_start( args, pszFormat ); PrintV(pszFormat, lBytes, args); va_end( args ); }
void ScreenRecoveryUI::PrintOnScreenOnly(const char *fmt, ...) { va_list ap; va_start(ap, fmt); PrintV(fmt, false, ap); va_end(ap); }
void ScreenRecoveryUI::Print(const char* fmt, ...) { va_list ap; va_start(ap, fmt); PrintV(fmt, true, ap); va_end(ap); }
AFS_API int32 PrintExV(bool bError, const char* sFormat, CVaList& pArgList) { return (bError)?PrintErrorV(sFormat, pArgList):PrintV(sFormat, pArgList); }