diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-37D7019C-E3EF-5841-8691-5A865A2B5FD2.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-37D7019C-E3EF-5841-8691-5A865A2B5FD2.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,28 @@ + + + + + +Using +CCirBufferThis document describes how to use CCirBuffer. +
Before adding/removing objects

The buffer itself +is not allocated until the CCirBufBase::SetLengthL() member +function is called. Therefore, the first steps must always be to construct +the CCirBuffer object and then call its SetLengthL() member +function.

Also note that SetLengthL() can leave so +it's useful to call it under a trap harness.

... +CCirBuffer* cbInt=new CCirBuffer; +TRAPD(ret,cbInt->SetLengthL(3)); // max capacity is 3 + // and allocates buffer +cbInt->Put(123); // Can now start adding/removing integer objects +cbInt->Put(12); +cbInt->Put(1); +... +delete cbInt;
+
\ No newline at end of file