|
| IMPORT_C | ~CBufSeg () |
| | Destructor.
|
| |
| IMPORT_C void | Compress () |
| | Compresses the buffer so as to occupy minimal space.
|
| |
| IMPORT_C void | Delete (TInt aPos, TInt aLength) |
| | Deletes data from the buffer.
|
| |
| IMPORT_C TPtr8 | Ptr (TInt aPos) |
| | Gets a pointer descriptor to represent the data from the specified position to
the end of the contiguous region containing that byte.
|
| |
| IMPORT_C TPtr8 | BackPtr (TInt aPos) |
| | Gets a pointer descriptor to represent data from just before the specified data byte backward to the beginning of the contiguous region containing that byte.
|
| |
| IMPORT_C | ~CBufBase () |
| | Destructor.
|
| |
| TInt | Size () const |
| | Gets the number of data bytes in the buffer.
|
| |
| IMPORT_C void | Reset () |
| | Deletes all data in the buffer.
|
| |
| IMPORT_C void | Read (TInt aPos, TDes8 &aDes) const |
| | Reads data from the buffer into a descriptor.
|
| |
| IMPORT_C void | Read (TInt aPos, TDes8 &aDes, TInt aLength) const |
| | Reads the specified number of bytes of data from the buffer into a descriptor.
|
| |
| IMPORT_C void | Read (TInt aPos, TAny *aPtr, TInt aLength) const |
| | Reads the specified number of bytes of data from the buffer into a specified address.
|
| |
| IMPORT_C void | Write (TInt aPos, const TDesC8 &aDes) |
| | Writes data from a descriptor to the buffer.
|
| |
| IMPORT_C void | Write (TInt aPos, const TDesC8 &aDes, TInt aLength) |
| | Writes the specified number of bytes of data from a descriptor to the buffer.
|
| |
| IMPORT_C void | Write (TInt aPos, const TAny *aPtr, TInt aLength) |
| | Writes the specified number of bytes of data from the specified address to the buffer.
|
| |
| IMPORT_C void | InsertL (TInt aPos, const TDesC8 &aDes) |
| | Inserts data into the buffer.
|
| |
| IMPORT_C void | InsertL (TInt aPos, const TDesC8 &aDes, TInt aLength) |
| | Inserts the specified number of bytes of data from a descriptor into the buffer.
|
| |
| IMPORT_C void | InsertL (TInt aPos, const TAny *aPtr, TInt aLength) |
| | Inserts bytes of data from the specified address into the buffer.
|
| |
| IMPORT_C void | ExpandL (TInt aPos, TInt aLength) |
| | Inserts an uninitialised region into the buffer.
|
| |
| IMPORT_C void | ResizeL (TInt aSize) |
| | Re-sizes the buffer to the specified size.
|
| |
| | CBase () |
| | Default constructor.
|
| |
| virtual IMPORT_C | ~CBase () |
| | Virtual destructor.
|
| |
| TAny * | operator new (TUint aSize, TAny *aBase) __NO_THROW |
| | Initialises the object to binary zeroes.
|
| |
| TAny * | operator new (TUint aSize) __NO_THROW |
| | Allocates the object from the heap and then initialises its contents to binary zeroes.
|
| |
| TAny * | operator new (TUint aSize, TLeave) |
| | Allocates the object from the heap and then initialises its contents to binary zeroes.
|
| |
| TAny * | operator new (TUint aSize, TUint aExtraSize) __NO_THROW |
| | Allocates the object from the heap and then initialises its contents to binary zeroes.
|
| |
| TAny * | operator new (TUint aSize, TLeave, TUint aExtraSize) |
| | Allocates the object from the heap and then initialises its contents to binary zeroes.
|
| |
Provides a segmented dynamic buffer.
This class should be used when the object has a long life-time and an unpredictable number of insertions, or there is concern about the performance of insertion and deletion operations into large buffers.
This class is an implementation of the abstract buffer interface provided by CBufBase and uses doubly-linked list of heap cells to contain the data; each cell containing a segment of the buffer.
Its (private) data members include an anchor for the doubly-linked list, and also a reference to the buffer position used by the last operation. This reference acts as a cache; if the next operation uses a similar buffer position, then calculation of the pointer corresponding to its buffer position is much faster.
- API status
- Published to all clients. Released API.
Definition at line 242 of file e32base.h.