Querry HBuf16 (NewBe)

Login to reply to this topic.
Mon, 2006-02-27 05:46
Joined: 2005-07-25
Forum posts: 31
Hi All,

What will be the maximum bytes allocated on the heap ?
by HbufC16 ?,  As what I hace read and understand
that it depends on the type of build.

In my perseption the maximum aqllocated bytes
for the HBufC16 can allocate is 2 power 16, on the
Armi build

Point 1:

Is the above is correct ? if not then please let me know
to reffer any links ?

Point2:

How we handle the char in symbian ? and what is '
the number of bytes allocated for the 1 char in symbian

Point3:

And Where I can find for the conversion (Type cast)
of the  types in the symbian?


Note: Please Rectify the My understanding as I am new
          to symbian OS

Thanks In Advance
Ranjeet

Mon, 2006-02-27 13:24
Joined: 2005-09-16
Forum posts: 141
Re: Querry HBuf16 (NewBe)
Hi,

Quote
HBufC16 can allocate is 2 power 16


point 1:
I think heap buffer support unlimited memory

point 2:

you can handle a char with [] operator, ie
TBuf<10> temp;
temp.Copy(_L("eswar"));
TChar ch=temp[0];

point 3:

if you want to convert any string to integer you first copy this string to lex.

TBuf<10> temp;
temp.Copy(_L("10"));

TLex l(temp);

TInt i;
l.Val(i);


  • Login to reply to this topic.