This document describes how to use CCirBuffer.
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;
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.