Why don't you look at the public API for TBuf, and the classes it inherits from. You've said you want to append, well, lo and behold, there are some functions called TDes::Append().
There's three of them,
will Append(TChar aChar) work? no we don't have a TChar.
will Append(const TUint *aBuf,TInt aLength) work? No as we have a TPtrC?
Will Append(const TDesC &aDes) work? Yes, TPtrC inherits from TDesC.
Forum posts: 182
Why don't you look at the public API for TBuf, and the classes it inherits from. You've said you want to append, well, lo and behold, there are some functions called TDes::Append().
There's three of them,
will Append(TChar aChar) work? no we don't have a TChar.
will Append(const TUint *aBuf,TInt aLength) work? No as we have a TPtrC?
Will Append(const TDesC &aDes) work? Yes, TPtrC inherits from TDesC.
Forum posts: 26
Thank you Numpty Alert for your reply.
Forum posts: 3
hey another suggestion this could work too using the
Dec() function you could be able to modify the non modifiable descriptors
_LIT(KTxtHW,"Hello World!");
TPtrC<20> buf(KTxtHW); //
TPtr ptr2(buf.Des());