| class RCommsBuf |
Represents the COMMS specific metadata and payload of a shared buffer
| Public Member Functions | |
|---|---|
| void | AdjustDataEnd(TInt) |
| void | AdjustDataStart(TInt) |
| IMPORT_C RCommsBuf * | Alloc(TUint, TCommsBufAllocator &) |
| IMPORT_C void | Append(const TDesC8 &) |
| TInt | AppendLimit() |
| TPtrC8 | DesC8() |
| IMPORT_C void | Free() |
| TInt | Length() |
| TInt | Offset() |
| IMPORT_C void | Prepend(const TDesC8 &) |
| TInt | PrependLimit() |
| const TUint8 * | Ptr() |
| TUint8 * | Ptr() |
| const TUint8 * | RawBase() |
| TUint8 * | RawBase() |
| TInt | RawSize() |
| IMPORT_C void | Read(TDes8 &, TInt) |
| void | Reset() |
| void | SetDataRange(TInt, TInt) |
| IMPORT_C void | Write(const TDesC8 &, TInt) |
| TUint8 | operator[](TInt) |
| TUint8 & | operator[](TInt) |
| Protected Member Functions | |
|---|---|
| RCommsBuf() | |
| RCommsBuf(TInt, TUint, TInt, TInt) | |
| RCommsBuf(TInt, TUint, TInt) | |
| RCommsBuf * | Next() |
| const RCommsBuf * | Next() |
| void | SetNext(RCommsBuf *) |
| void | SetOffset(TInt) |
| Private Member Functions | |
|---|---|
| RCommsBuf(const RCommsBuf &) | |
| void | AssertCommsBufInvariants() |
| TInt | Handle() |
| CCommsBufPool * | Pool() |
| void | operator delete(TAny *, const TUint8 *) |
| TAny * | operator new(TUint, const TUint8 *) |
| RCommsBuf & | operator=(const RCommsBuf &) |
| Protected Attributes | |
|---|---|
| TCommsBuf | iCommsBufMetaData |
| RCommsBuf | ( | TInt | aRawDataOffset, |
| TUint | aBufSize, | ||
| TInt | aHandle, | ||
| TInt | aPool | ||
| ) | [protected, inline] | ||
| RCommsBuf | ( | TInt | aRawDataOffset, |
| TUint | aBufSize, | ||
| TInt | aPool | ||
| ) | [protected, inline] | ||
| void | AdjustDataEnd | ( | TInt | aDelta | ) | [inline] |
Adjust the RCommsBuf data length with the given delta value. ie; the data length is incremented by the given value
| TInt aDelta |
| void | AdjustDataStart | ( | TInt | aDelta | ) | [inline] |
Adjust the RCommsBuf data offset and length with the given delta value. ie; the data offset is incremented by the given delta value and the data length is decremented by the given delta value
| TInt aDelta |
| IMPORT_C RCommsBuf * | Alloc | ( | TUint | aSize, |
| TCommsBufAllocator & | aAccessor | |||
| ) | [static] | |||
| TUint aSize | |
| TCommsBufAllocator & aAccessor |
| TPtrC8 | DesC8 | ( | ) | const [inline] |
Creates and returns a non-modifiable pointer descriptor representing the contained data
non-modifiable pointer descriptor
| TInt | PrependLimit | ( | ) | const [inline] |
Returns the length of the data that can be prepended
| const TUint8 * | Ptr | ( | ) | const [inline] |
Returns a const pointer to the actual location of the data start. Actual data start location may differ from the start of the data
A const pointer
| const TUint8 * | RawBase | ( | ) | const [inline] |
Returns a const ponter to the start of the data represented by the RCommsBuf
A const pointer
| TUint8 * | RawBase | ( | ) | [inline] |
Returns a ponter to the start of the data represented by the RCommsBuf
A pointer
| void | SetDataRange | ( | TInt | aOffset, |
| TInt | aLength | |||
| ) | [inline] | |||
Sets the offset and length of the data
| void | SetOffset | ( | TInt | aOffset | ) | [protected, inline] |
Sets the RCommsBuf data offset
| TInt aOffset | An offset |
| void | operator delete | ( | TAny * | aPtr, |
| const TUint8 * | ||||
| ) | [private, inline] | |||
| TAny * | operator new | ( | TUint | aSize, |
| const TUint8 * | aPtr | |||
| ) | [private, inline] | |||
| RCommsBuf & | operator= | ( | const RCommsBuf & | ) | [private] |
| const RCommsBuf & |