RCommsBufChain Class Reference
Constructor & Destructor Documentation
RCommsBufChain()
RCommsBufChain
|
(
|
)
|
[inline]
|
RCommsBufChain(RCommsBuf *)
RCommsBufChain
|
(
|
RCommsBuf
*
|
aHeadBuf
|
)
|
[inline]
|
Member Functions Documentation
Align(TInt)
Ensure that the first aSize bytes can be safely cast to a structure of size aSize.
Alloc(TInt, TCommsBufAllocator &)
Alloc(TInt, TInt, TCommsBufAllocator &)
Parameters
TInt
aSize
|
The requested total size
|
TInt
aMinBufSize
|
The size that the allocated buffer "must" atleast have
|
TCommsBufAllocator
& aAccessor
|
A handle to the allocator
|
Alloc(TInt, TInt, TInt, TCommsBufAllocator &)
Parameters
TInt
aSize
|
The requested total size
|
TInt
aMinBufSize
|
The size that the allocated buffer can have
|
TInt
aMaxBufSize
|
|
TCommsBufAllocator
& aAccessor
|
A handle to the allocator
|
Append(RCommsBuf *)
Append the supplied
RCommsBuf
to "this" chain.
Parameters
RCommsBuf
* aBuf
|
The RCommsBuf to be appended
|
Append(TInt)
Append space to the end of "this" chain. More
RCommsBuf
will be allocated if available append length is exceeding the supplied length
Length to appended
First()
const
RCommsBuf
*
|
First
|
(
|
)
|
const [private, inline]
|
Free()
Frees the RCommsBuf's in the chain. Upon completion the chain will become empty
Goto(TInt, TInt &, TInt &, RCommsBuf *&)
Goto specified byte offset into an
CommsBuf
chain. Used as part of Read/Write, split etc to position
CommsBuf
pointer and offset from start of iBuffer.
Parameters
TInt
aDataOffset
|
|
TInt
& aBufDataOffset
|
|
TInt
& aBufDataLen
|
|
RCommsBuf
*& resPrevBuf
|
result previous Buf in the chain
|
Goto(TInt, TInt &, TInt &)
RCommsBuf
*
|
Goto
|
(
|
TInt
|
aDataOffset,
|
|
TInt
&
|
aBufDataOffset,
|
|
TInt
&
|
aBufDataLen
|
|
)
|
const [protected, inline]
|
Goto specified byte offset into a
CommsBuf
chain. Used as part of copyin/out, split etc to position
RCommsBuf
pointer and offset from start of iBuffer.
IsEmpty()
TBool
|
IsEmpty
|
(
|
)
|
const [inline]
|
Check if the chain is empty. If empty returns ETrue otherwise EFalse
Last()
IMPORT_C
RCommsBuf
*
|
Last
|
(
|
)
|
const [protected]
|
Returns the const pointer to the last
RCommsBuf
in the chain
Last()
Returns the pointer to the last
RCommsBuf
in the chain
Length()
IMPORT_C
TInt
|
Length
|
(
|
)
|
const
|
Returns the actual number of bytes present in the chain
Prepend(RCommsBufChain &)
Prepend(RCommsBuf *)
Prepend the supplied
RCommsBuf
to "this" chain.
Parameters
RCommsBuf
* aBuf
|
The RCommsBuf to be prepended
|
Prepend(TInt)
Prepend space to the end of "this" chain. More
RCommsBuf
will be allocated if available prepend length is exceeding the supplied length
Length to prepended
Read(TDes8 &, TInt)
IMPORT_C void
|
Read
|
(
|
TDes8
&
|
aDes,
|
|
TInt
|
aOffset = 0
|
|
)
|
const
|
Read to the supplied descriptor at the specified offset within the chain
Parameters
TDes8
& aDes
|
Descriptor to read
|
TInt
aOffset = 0
|
Offset within the chain
|
Split(TInt, RCommsBufChain &)
TrimEnd(TInt)
IMPORT_C void
|
TrimEnd
|
(
|
TInt
|
anOffset
|
)
|
|
Trim the rightmost part of the data in the chain with the no. of bytes that is supplied
Parameters
TInt
anOffset
|
The no. of bytes to be trimmed
|
TrimStart(TInt)
IMPORT_C void
|
TrimStart
|
(
|
TInt
|
nBytes
|
)
|
|
Trim the leftmost part of the data in the chain with the no. of bytes that is supplied
Parameters
TInt
nBytes
|
The no. of bytes to be trimmed
|
Write(const TDesC8 &, TInt)
IMPORT_C void
|
Write
|
(
|
const
TDesC8
&
|
aDes,
|
|
TInt
|
aOffset = 0
|
|
)
|
|
Writes the supplied descriptor at the specified offset within the chain
Parameters
const
TDesC8
& aDes
|
Descriptor to write
|
TInt
aOffset = 0
|
Offset within the chain
|
Member Data Documentation
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.