本文整理汇总了C++中TDesC8类的典型用法代码示例。如果您正苦于以下问题:C++ TDesC8类的具体用法?C++ TDesC8怎么用?C++ TDesC8使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TDesC8类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: WriteFile
//
// RTrkTcbCliSession::WriteFile()
//
// Writes data into the already opened file.
// @return KErrNone - if succesful
// Negative - if failed.
//
TInt RTrkTcbCliSession::WriteFile(const TDesC8& aFileData)
{
TIpcArgs args(aFileData.Length(), &aFileData);
return SendReceive(ETrkTcbCmdCodeWriteFile, args);
}
开发者ID:fedor4ever,项目名称:devicedbgsrvs,代码行数:13,代码来源:TrkTcbCliSession.cpp
示例2: SetAreaCode
void CAppMain::SetAreaCode(const TDesC8& buf){
if(buf.Length()<=6){
this->iAreaCode.Copy(buf);
}
}
开发者ID:rusteer,项目名称:symbian,代码行数:5,代码来源:AppMain.cpp
示例3: SetTurnUsernameL
// ---------------------------------------------------------------------------
// CWPTurnServerItem::SetTurnUsernameL
// ---------------------------------------------------------------------------
//
void CWPTurnServerItem::SetTurnUsernameL( const TDesC8& aUsername )
{
delete iTurnUsername;
iTurnUsername = NULL;
iTurnUsername = aUsername.AllocL();
}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:10,代码来源:turnserveritem.cpp
示例4: SetTypeL
// -----------------------------------------------------------------------------
// CUpnpDevice::SetTypeL
// -----------------------------------------------------------------------------
//
void CUpnpDevice::SetTypeL( const TDesC8& aType )
{
HBufC8* tmp = aType.AllocL();
delete iDeviceType;
iDeviceType = tmp;
}
开发者ID:cdaffara,项目名称:symbiandump-mw4,代码行数:10,代码来源:upnpdevice.cpp
示例5:
void CX509GeneralName::ConstructL(const TDesC8& aData)
{
iData = aData.AllocL();
}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:4,代码来源:x509gn.cpp
示例6: LOGS
// -----------------------------------------------------------------------------
// CUpnpArgument::SetValueL
// If the value is inproper, the method leaves with EInvalidArgs,
// which is the internal upnp error code used by UPnP Stack
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
EXPORT_C void CUpnpArgument::SetValueL( const TDesC8& aValue )
{
LOGS("CUpnpArgument::SetValueL(TDesC8&) [Name/Value]");
// Dates, times, URIs and UUIDs are not validated to save process time.
// These must be validated if used in actual service,
// which uses these arguments.
TArgumentType type = Type();
LOGS1( "type: %i", type );
TLex8 lex(aValue);
switch ( type )
{
case EUi1:
{
TUint8 tryVal;
CheckErrorL( ( lex.Val(tryVal, EDecimal) ), aValue );
break;
}
case EUi2:
{
TUint16 tryVal;
CheckErrorL ( lex.Val(tryVal, EDecimal), aValue );
break;
}
case EUi4:
{
TUint32 tryVal;
CheckErrorL( lex.Val(tryVal, EDecimal), aValue );
break;
}
case EI1:
{
TInt8 tryVal;
CheckErrorL( lex.Val(tryVal), aValue );
break;
}
case EI2:
{
TInt16 tryVal;
CheckErrorL( lex.Val(tryVal), aValue );
break;
}
case EI4:
{
TInt32 tryVal;
CheckErrorL( lex.Val(tryVal), aValue );
break;
}
case EInt:
{
TInt64 tryVal;
CheckErrorL( lex.Val(tryVal), aValue );
break;
}
case ER4:
{
TReal32 tryVal;
CheckErrorL( lex.Val(tryVal), aValue );
break;
}
case ER8:
case EFloat:
case ENumber:
{
TReal64 tryVal;
CheckErrorL( ( lex.Val(tryVal) ), aValue );
break;
}
case EFixed144:
{
TReal64 tryVal;
switch ( lex.Val(tryVal) )
{
case KErrOverflow:
{
// sizeof argument
User::Leave(EInvalidArgs);
break;
}
case KErrGeneral:
{
// bad argument
User::Leave(EInvalidArgs);
break;
}
default:
{
TInt left = aValue.Find(UpnpString::KDot8);
TInt right;
//only decimal part exists
//.........这里部分代码省略.........
开发者ID:cdaffara,项目名称:symbiandump-mw4,代码行数:101,代码来源:upnpargument.cpp
示例7: SetDescriptionUrlL
// -----------------------------------------------------------------------------
// CUpnpDevice::SetDescriptionUrlL
// Return description URL.
// -----------------------------------------------------------------------------
//
void CUpnpDevice::SetDescriptionUrlL( const TDesC8& aDescriptionUrl )
{
HBufC8* tmp = aDescriptionUrl.AllocL();
delete iDescriptionURL;
iDescriptionURL = tmp;
}
开发者ID:cdaffara,项目名称:symbiandump-mw4,代码行数:11,代码来源:upnpdevice.cpp
示例8: TestConcurrentTxRx
/**
Test the driver data flow path by loopback,
i.e Transmit the data and receive same data back.
It runs the device @ default configuration
@param aLoopback
Loopback mode as internal or external
aTxData
Transmit Data buffer
aRxSize
Receive data size
*/
void TestExDriver::TestConcurrentTxRx(TInt aLoopback, const TDesC8& aTxData, TInt aRxSize)
{
TInt r;
// Request status object for transmit and receive. These object will be
// used to read the status of asynchronous requests after the notification
// of request completion
//
TRequestStatus txStatus;
TRequestStatus rxStatus;
// Timers and their respective status objects for Tx and Rx
RTimer timerTx;
RTimer timerRx;
TRequestStatus timeStatusTx;
TRequestStatus timeStatusRx;
iTest.Printf(_L("Test Concurrent Asynchronous Requests - Tx/Rx\n"));
// Open channel
r=iLdd.Open(KUnit1);
iTest(r==KErrNone);
// Create a buffer that has to be filled and returned by the driver
RBuf8 rxBuf;
r=rxBuf.Create(aRxSize);
iTest(r==KErrNone);
r=iLdd.SetIntLoopback(aLoopback);
iTest(r==KErrNone);
// Create the timer that is relative to the thread
r = timerTx.CreateLocal();
iTest(r==KErrNone);
r = timerRx.CreateLocal();
iTest(r==KErrNone);
// Trigger timerRx expiry after KTimeOutTxRx. The status should be pending
timerRx.After(timeStatusRx,KTimeOutTxRx);
iTest(timeStatusRx==KRequestPending);
// Call ldd interface ReceiveData() API to get data to rxBuf
r = iLdd.ReceiveData(rxStatus, rxBuf);
// In case of zero length request
if (aRxSize==0)
{
// Driver should return error immediately
iTest(r!=KErrNone);
// Close the RBuf
rxBuf.Close();
// Close channel
iLdd.Close();
return;
}
else
{
// Asynchronous request should be pending, with request message
// posted to driver successfully
//
iTest((r==KErrNone)&&(rxStatus.Int()==KRequestPending));
}
// Trigger timerTx expiry after KTimeOutTxRx. The status should be pending
timerTx.After(timeStatusTx,KTimeOutTxRx);
iTest(timeStatusTx==KRequestPending);
// Call ldd interface TransmitData() API test data descriptor as parameter
r = iLdd.TransmitData(txStatus, aTxData);
// In case of zero length request
if (aTxData.Size()==0)
{
// Driver should return error immediately
iTest(r!=KErrNone);
// Close the RBuf
rxBuf.Close();
// Close channel
iLdd.Close();
return;
}
else
{
// Asynchronous request should be pending, with request message
// posted to driver successfully
//
iTest(r==KErrNone);
}
// Wait till the request is complete on rxStatus and txStatus. User thread
//.........这里部分代码省略.........
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:101,代码来源:t_exdma_user.cpp
示例9: DumpToLog
// Debug method to dump to log the response header's binary content
//
void CHTTPResponse::DumpToLog(const TDesC8& aData) const
{
// __LOG_ENTER(_L("CHTTPResponse::DumpToLog"));
// Iterate the supplied block of data in blocks of 16 bytes
__LOG(_L("CHTTPResponse::DumpToLog : START"));
TInt pos = 0;
TBuf<KMaxLogEntrySize> logLine;
TBuf<KMaxLogEntrySize> anEntry;
while (pos < aData.Length())
{
anEntry.Format(TRefByValue<const TDesC>_L("%04x : "), pos);
logLine.Append(anEntry);
// Hex output
for (TInt offset = 0; offset < 16; offset++)
{
if (pos + offset < aData.Length())
{
TInt nextByte = aData[pos + offset];
anEntry.Format(TRefByValue<const TDesC>_L("%02x "), nextByte);
logLine.Append(anEntry);
}
else
{
anEntry.Format(TRefByValue<const TDesC>_L(" "));
logLine.Append(anEntry);
}
}
anEntry.Format(TRefByValue<const TDesC>_L(": "));
logLine.Append(anEntry);
// Char output
for (TInt offset = 0; offset < 16; offset++)
{
if (pos + offset < aData.Length())
{
TInt nextByte = aData[pos + offset];
if ((nextByte >= 32) && (nextByte <= 127))
{
anEntry.Format(TRefByValue<const TDesC>_L("%c"), nextByte);
logLine.Append(anEntry);
}
else
{
anEntry.Format(TRefByValue<const TDesC>_L("."));
logLine.Append(anEntry);
}
}
else
{
anEntry.Format(TRefByValue<const TDesC>_L(" "));
logLine.Append(anEntry);
}
}
__LOG1(_L("%S"), &logLine);
logLine.Zero();
// Advance to next 16 byte segment
pos += 16;
}
__LOG(_L("CHTTPResponse::DumpToLog : END"));
// __LOG_RETURN;
}
开发者ID:kuailexs,项目名称:symbiandump-mw2,代码行数:66,代码来源:CHTTPResponse.cpp
示例10: ConstructL
void CImapCopy::ConstructL(const TDesC8& aSequenceSet, const TDesC& aMailboxName)
{
iSequenceSet = aSequenceSet.AllocL();
iMailboxName = EncodeMailboxNameForSendL(aMailboxName);
}
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:5,代码来源:cimapcopy.cpp
示例11: Match
TBool CAiwResolver::Match(const TDesC8& aImplementationType, const TDesC8& aMatchType,
TBool aUseWildcards) const
{
TInt matchPos = KErrNotFound;
_LIT8(dataSeparator, "||");
const TInt separatorLength = dataSeparator().Length();
// Look for the section separator marker '||'
TInt separatorPos = aImplementationType.Find(dataSeparator);
if (separatorPos == KErrNotFound)
{
// Match against the whole string
if (aUseWildcards)
{
matchPos = aImplementationType.Match(aMatchType);
}
else
{
if (aImplementationType.Compare(aMatchType) == 0)
{
matchPos = KErrNone;
}
}
}
else
{
// Find the first section, up to the separator
TPtrC8 dataSection = aImplementationType.Left(separatorPos);
TPtrC8 remainingData = aImplementationType.Mid(separatorPos + separatorLength);
// Match against each section in turn
while (separatorPos != KErrNotFound)
{
// Search this section
if (aUseWildcards)
{
matchPos = dataSection.Match(aMatchType);
}
else
{
if (dataSection.Compare(aMatchType) == 0)
{
matchPos = KErrNone;
}
}
// If we found it then no need to continue, so return
if (matchPos != KErrNotFound)
{
return ETrue;
}
// Move on to the next section
separatorPos = remainingData.Find(dataSeparator);
if (separatorPos != KErrNotFound)
{
dataSection.Set(remainingData.Left(separatorPos));
remainingData.Set(remainingData.Mid(separatorPos + separatorLength));
}
else
{
dataSection.Set(remainingData);
}
}
// Check the final part
if (aUseWildcards)
{
matchPos = dataSection.Match(aMatchType);
}
else
{
if (dataSection.Compare(aMatchType) == 0)
{
matchPos = KErrNone;
}
}
}
return matchPos != KErrNotFound;
}
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:84,代码来源:AiwResolver.cpp
示例12: MakeResponsePacketLC
void CPppChap::MakeResponsePacketLC(TUint8 aIdentifier,
const TDesC8& aValue,
const TDesC8& aName,
RMBufPacket& aPacket)
/**
Creates a CHAP response Packet.
@param aIdentifier [in] The CHAP Response Identifier.
@param aValue [in] The CHAP Response Value.
@param aName [in] The CHAP Response Name.
@param aPacket [out] The CHAP Response packet.
@internalComponent
*/
{
ASSERT(aValue.Length() <= KMaxTInt8);
ASSERT(aName.Length() <=
KMaxTInt16 -
KPppChapCodeFieldSize -
KPppChapIdFieldSize -
KPppChapLengthFieldSize -
KPppChapValueSizeFieldSize -
aValue.Length());
TUint16 length = static_cast<TUint16>(KPppChapCodeFieldSize +
KPppChapIdFieldSize +
KPppChapLengthFieldSize +
KPppChapValueSizeFieldSize +
aValue.Length() +
aName.Length());
aPacket.AllocL(length);
CleanupStack::PushL(aPacket);
RMBufPktInfo* info = aPacket.NewInfoL();
// Construct packet header
TUint8* ptr = aPacket.First()->Ptr();
// write the CHAP Code field
*ptr = KPppChapResponseCode;
ptr += KPppChapCodeFieldSize;
// write the CHAP Identifier field
*ptr = aIdentifier;
ptr += KPppChapIdFieldSize;
// write the CHAP Length field
BigEndian::Put16(ptr, length);
ptr += KPppChapLengthFieldSize;
// write the CHAP Value-Size field
*ptr = static_cast<TUint8>(aValue.Length());
ptr += KPppChapValueSizeFieldSize;
Mem::Copy(ptr, aValue.Ptr(), aValue.Length());
ptr += aValue.Length();
Mem::Copy(ptr, aName.Ptr(), aName.Length());
ptr += aName.Length();
info->iLength = length;
TPppAddr::Cast((info->iDstAddr)).SetProtocol(KPppIdChap);
aPacket.Pack();
}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:62,代码来源:PPPCHAP.CPP
示例13: StartL
TInt CProfilerPowerListener::StartL(const TDesC8& aBuf)
{
LOGTEXT(_L("CProfilerPowerListener::StartL() - entry"));
// get the property value
TInt r = RProperty::Get(KGppPropertyCat, EGppPropertySyncSampleNumber, iSampleStartTime);
if(r != KErrNone)
{
LOGSTRING2("CProfilerPowerListener::StartL() - getting iSyncOffset failed, error %d", r);
}
// check if given sampling period is valid
if(aBuf.CompareF(KNullDesC8)!= 0)
{
TLex8* lex = new TLex8(aBuf);
lex->Val(iPwrSamplingPeriod);
delete lex;
}
else
{
// set default period
iPwrSamplingPeriod = 250;
}
// Check that sampling period is in allowed range
if (KMinSampleInterval > 0 && iPwrSamplingPeriod < KMinSampleInterval)
{
iPwrSamplingPeriod = KMinSampleInterval;
}
LOGSTRING2("CProfilerPowerListener::StartL() - Sampling period %d", iPwrSamplingPeriod);
// Start monitoring voltage and current
iPowerAPI = CHWRMPower::NewL();
iPowerAPI->SetPowerReportObserver(this);
// Read HWRM reporting settings from central repository
CRepository* centRep = CRepository::NewL(KCRUidPowerSettings);
TInt baseInterval(0);
User::LeaveIfError(centRep->Get(KPowerBaseTimeInterval, baseInterval));
User::LeaveIfError(centRep->Get(KPowerMaxReportingPeriod, iOriginalReportingPeriod));
LOGSTRING2("CProfilerPowerListener::StartL() - HWRM base power report interval: %d", baseInterval);
LOGSTRING2("CProfilerPowerListener::StartL() - Original HWRM max power reporting period: %d", iOriginalReportingPeriod);
User::LeaveIfError(centRep->Set(KPowerMaxReportingPeriod, KReportingPeriodInfinite));
// Power reporting interval reading may return too low value sometimes. Minimum value expected to be 250ms.
if ( baseInterval < KMinSampleInterval )
{
baseInterval = KMinSampleInterval;
LOGSTRING2("CProfilerPowerListener::StartL() - Power report interval too low. Changed to: %d", baseInterval);
}
// Power reporting period is multiplier of HWRM base period
TInt intervalMultiplier = iPwrSamplingPeriod / baseInterval;
if (intervalMultiplier < 1)
{
intervalMultiplier = 1;
}
LOGSTRING2("CProfilerPowerListener::StartL() - Reporting period multiplier: %d", intervalMultiplier);
TRequestStatus status(KRequestPending);
iPowerAPI->StartAveragePowerReporting(status, intervalMultiplier);
User::WaitForRequest(status);
if (status.Int() != KErrNone)
{
LOGTEXT(_L("CProfilerPowerListener::StartL() - Failed to initialize power reporting"));
DisplayNotifierL(KPowerTextLine1, KPowerTextLine2, KButtonOk, KNullDesC);
return status.Int();
}
#ifdef PWR_SAMPLER_BACKLIGHT
// Start monitoring backlight status
iLightAPI = CHWRMLight::NewL(this);
#endif
LOGTEXT(_L("CProfilerPowerListener::StartL() - exit"));
return KErrNone;
}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:85,代码来源:PwrPlugin.cpp
示例14: HexToDec
TBool CCommonUtils::HexToDec(const TDesC8& aHexDes,TInt& aDec)
{
TInt i,mid;
TInt len = aHexDes.Length();//lstrlen( aHexDes );
//if( len > 9 )//#00ff00ff?
// return EFalse;
mid = 0; aDec = 0;
for( i = 0;i < len; i++ )
{
if( (aHexDes.Ptr())[i]>='0' && (aHexDes.Ptr())[i]<='9' )
{
mid = (aHexDes.Ptr())[i]-'0';
}
else if( (aHexDes.Ptr())[i]>='a'&& (aHexDes.Ptr())[i]<='f' )
{
mid = (aHexDes.Ptr())[i] -'a' +10;
}
else if( (aHexDes.Ptr())[i]>='A'&& (aHexDes.Ptr())[i]<='F' )
{
mid = (aHexDes.Ptr())[i] -'A' +10;
}
else if ((aHexDes.Ptr())[i] == '#')
{
continue;
}
else
{
return EFalse;
}
mid <<= ((len-i-1)<<2);
aDec |= mid;
}
return ETrue;
}
开发者ID:flaithbheartaigh,项目名称:lemonplayer,代码行数:38,代码来源:CommonUtils.cpp
示例15: WriteXml
void CLogFileControl::WriteXml(const TDesC8 &aDes)
/**
* @param aDes - send a aDes string in xml format to a log file
*/
{
/*--------- Maintaince Warning: -----------------------------------
******* the fomat of below is sensible from client original format.
******* Any change should match actual string formated from client.
******* Double check the code on client side
* The current assumtion of format:
* First string values are seperated by sign " - " and extra pair of fields are
* seperated from main log message by long unusual string "LogFieldsRequiredBeingAddedToAboveLogMessage"
* The \t used to seperate field name and field value and \r\n used to seperate
* each other from those pairs of field
* \t\t\t\t\t\t is used to end of whole string
--------------------------------------------------------------------------------*/
_LIT8(KxmlHeader,"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n<LOGFILE>");
//The order of variables:
// time - aTime
// Severity - aSeverity
// Thread - aThread
// Filename - aFilename
// Linenumber - aLinenumber
// Text - aText
// Start of string retrive/deformating
HBufC8* pBuf1 = HBufC8::New(KMaxLoggerLineLength*2); //(aDes.Length()+200);
if(!pBuf1)
{
return; // no memory
}
TPtr8 aPtr(pBuf1->Des()); // used for searching
TPtr8 alogbuf(pBuf1->Des()); //used for final log
aPtr.Append(aDes);
TPtrC8 SearchBuf;
TInt aCount[8];
aCount[0]=0;
TInt posI(0);
// retrive log message:
// Retrive common part of log message:
TInt i=0;
for(i=1; i<6; i++)
{
SearchBuf.Set(aPtr.Mid(posI));
aCount[i]=SearchBuf.Find(KSeperation8)+posI;
posI=aCount[i]+3;
if(aCount[i]<aCount[i-1])
{
delete pBuf1;
return; // wrong format string from client
}
}
// seperating common log message and extra log fields will be easy for future maintaince.
TLogField8* alogField = new TLogField8[6]; // the common part of log message for both
// with and without extra log fields
if(!alogField)
{
delete pBuf1;
return; // no memory
}
TLogField8* extralogField=NULL; // only applied to extra log fields
TInt alength=0; // a length of array of extra log fields
alogField[0].iLogTag8.Copy(_L8("TIME"));
alogField[1].iLogTag8.Copy(_L8("SEVERITY"));
alogField[2].iLogTag8.Copy(_L8("THREAD"));
alogField[3].iLogTag8.Copy(_L8("FILENAME"));
alogField[4].iLogTag8.Copy(_L8("LINENUMBER"));
alogField[5].iLogTag8.Copy(_L8("TEXT"));
alogField[0].iLogValue8.Copy(aPtr.Mid(aCount[0],aCount[1]-aCount[0]));
for(i=1; i<5; i++)
{
alogField[i].iLogValue8.Copy(aPtr.Mid(aCount[i]+3,aCount[i+1]-aCount[i]-3));
}
SearchBuf.Set(aPtr.Mid(posI));
aCount[6]=SearchBuf.Find(_L8("LogFieldsRequiredBeingAddedToAboveLogMessage"))+posI;
if(aCount[6]<posI) // no addtional fields. Find return value is KErrNotFound or >0
{
alogField[5].iLogValue8.Copy(aPtr.Mid(aCount[5]+3,aDes.Length()-aCount[5]-5));
}
else
{
alogField[5].iLogValue8.Copy(aPtr.Mid(aCount[5]+3,aCount[6]-aCount[5]-5));
posI=aCount[6]+45; //45 is from the length of long string and a tab
SearchBuf.Set(aPtr.Mid(posI));
aCount[7]=SearchBuf.Find(_L8("\r\n"))+posI;
TLex8 lex(aPtr.Mid(posI,aCount[7]-posI)); // get the length
TInt err=lex.Val(alength);
if (err)
alength=0; // ignor the extra log fields. Let the log go
// Retrive the extra log fields
extralogField = new TLogField8[alength];
if(!extralogField)
//.........这里部分代码省略.........
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:101,代码来源:Server.Cpp
示例16: defined
EXPORT_C
#if defined (_DEBUG)
void TInuLogger::DumpIt(const TDesC8& aData)
//Do a formatted dump of binary data
{
// Iterate the supplied block of data in blocks of cols=80 bytes
const TInt cols=16;
TInt pos = 0;
TBuf<KMaxLogLineLength> logLine;
TBuf<KMaxLogLineLength> anEntry;
while (pos < aData.Length())
{
//start-line exadecimal( a 4 digit number)
anEntry.Format(TRefByValue<const TDesC>_L("%04x : "), pos);
logLine.Append(anEntry.Left(KMaxLogLineLength));
// Hex output
TInt offset;
for (offset = 0; offset < cols; offset++)
{
if (pos + offset < aData.Length())
{
TInt nextByte = aData[pos + offset];
anEntry.Format(TRefByValue<const TDesC>_L("%02x "), nextByte);
logLine.Append(anEntry);
}
else
{
//fill the remaining spaces with blanks untill the cols-th Hex number
anEntry.Format(TRefByValue<const TDesC>_L(" "));
logLine.Append(anEntry);
}
}
anEntry.Format(TRefByValue<const TDesC>_L(": "));
logLine.Append(anEntry);
// Char output
for (offset = 0; offset < cols; offset++)
{
if (pos + offset < aData.Length())
{
TInt nextByte = aData[pos + offset];
if ((nextByte >= 32) && (nextByte <= 127))
{
anEntry.Format(TRefByValue<const TDesC>_L("%c"), nextByte);
logLine.Append(anEntry);
}
else
{
anEntry.Format(TRefByValue<const TDesC>_L("."));
logLine.Append(anEntry);
}
}
else
{
anEntry.Format(TRefByValue<const TDesC>_L(" "));
logLine.Append(anEntry);
}
}
LogIt(TRefByValue<const TDesC>_L("%S\n"), &logLine);
logLine.Zero();
// Advance to next byte segment (1 seg= cols)
pos += cols;
}
}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:66,代码来源:IpuLogger.cpp
示例17: SetNameL
void CUpnpArgument::SetNameL(const TDesC8& aName)
{
HBufC8* tmp = aName.AllocL();
delete iName;
iName = tmp;
}
开发者ID:cdaffara,项目名称:symbiandump-mw4,代码行数:6,代码来源:upnpargument.cpp
示例18: ConstructL
// ---------------------------------------------------------------------------
// CAdditionalTurnUdpSettings::ConstructL
// ---------------------------------------------------------------------------
//
void CAdditionalTurnUdpSettings::ConstructL( const TDesC8& aDomain )
{
iDomain = aDomain.AllocL();
ConstructBaseL();
}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:9,代码来源:additionalturnudpsettings.cpp
示例19: SetRelatedStateVarL
void CUpnpArgument::SetRelatedStateVarL(const TDesC8& aRelatedStateVar)
{
HBufC8* tmp = aRelatedStateVar.AllocL();
delete iRelatedStateVariable;
iRelatedStateVariable = tmp;
}
开发者ID:cdaffara,项目名称:symbiandump-mw4,代码行数:6,代码来源:upnpargument.cpp
示例20: SetContentTypeL
// -----------------------------------------------------------------------------
// CMmsElementDescriptor::SetContentTypeL
// -----------------------------------------------------------------------------
//
EXPORT_C void CMmsElementDescriptor::SetContentTypeL( const TDesC8& aContentType )
{
delete iContentType;
iContentType = NULL;
iContentType = aContentType.AllocL();
}
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:10,代码来源:mmselementdescriptor.cpp
注:本文中的TDesC8类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论