I mean whether there is a way to define an uncertain descriptor using TBuf<length> and so on?
and I don't want to waste any space.
I mean whether there is a way to define an uncertain descriptor using TBuf<length> and so on?
and I don't want to waste any space.
Use the heap descriptor — HBufC
You might find this blog written by Jo Stichbury useful to refer when you have some confusions regarding descriptors http://descriptors.blogspot.com/
Good Luck!
- Neil R.Bhasme -
Twitter: @Symbian_Neil
If the length of buffer is uncertain before execution, you'd better allocate it in heap, that is use the HBufC class
also you can use RBuf, which is a resizeable buffer descriptor
Last edited by andy205214; 2009-09-16 at 16:53.
I am a programmer,and I hope we can help each other and progress together