RMBuf Class Reference
class RMBuf : public RCommsBuf
|
RMBuf
is a thin wrapper over
RCommsBuf
providing compatibility for existing code.
Constructor & Destructor Documentation
RMBuf(const RMBuf &)
RMBuf
|
(
|
const
RMBuf
&
|
|
)
|
[private]
|
Member Functions Documentation
AdjustEnd(TInt)
void
|
AdjustEnd
|
(
|
TInt
|
aLen
|
)
|
[inline]
|
AdjustStart(TInt)
void
|
AdjustStart
|
(
|
TInt
|
aLen
|
)
|
[inline]
|
Alloc()
IMPORT_C
RMBuf
*
|
Alloc
|
(
|
)
|
[static]
|
Allocates memory for a
RMBuf
object - the size of the mbuf to be allocate will depend on the available pool chains, eg. 128, 256 etc...
Alloc(TUint)
Allocates memory for a
RMBuf
object. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the
RMBuf
on the available pool chains.
Parameters
TUint
aSize
|
The requested size for the RMBuf
|
Alloc(RMBufAllocator &)
Allocates memory for a
RMBuf
object using a given
RMBufAllocator
. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the
RMBuf
on the available pool chains.
RMBufAllocator
Alloc(TUint, RMBufAllocator &)
Allocates memory for a
RMBuf
object using a given
RMBufAllocator
and a given size. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the
RMBuf
on the available pool chains.
RMBufAllocator
Parameters
TUint
aSize
|
The requested size for the RMBuf
|
RMBufAllocator
& aRMBufAllocator
|
RMBufAllocator object
|
AllocL()
IMPORT_C
RMBuf
*
|
AllocL
|
(
|
)
|
[static]
|
Allocates memory for a
RMBuf
object - the size of the mbuf to be allocate will depend on the available pool chains, eg. 128, 256 etc...
-
leave
-
KErrNoMemory On allocation failure
AllocL(TUint)
Allocates memory for a
RMBuf
object. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the
RMBuf
on the available pool chains.
-
leave
-
KErrNoMemory On allocation failure
Parameters
TUint
aSize
|
The requested size for the RMBuf
|
AllocL(RMBufAllocator &)
Allocates memory for a
RMBuf
object using a given
RMBufAllocator
. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the
RMBuf
on the available pool chains.
AllocL(TUint, RMBufAllocator &)
Allocates memory for a
RMBuf
object using a given
RMBufAllocator
and a given size. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the
RMBuf
on the available pool chains.
Parameters
TUint
aSize
|
The requested size for the RMBuf
|
RMBufAllocator
& aRMBufAllocator
|
RMBufAllocator object
|
Buffer()
const
TUint8
*
|
Buffer
|
(
|
)
|
const [inline]
|
End()
TInt
|
End
|
(
|
)
|
const [inline]
|
EndPtr()
const
TUint8
*
|
EndPtr
|
(
|
)
|
const [inline]
|
Init(TMBufType)
IMPORT_C void
|
Init
|
(
|
TMBufType
|
aType
|
)
|
|
Initialises MBuf's members
Parameters
TMBufType
aType
|
A MBuf type
|
Last()
IMPORT_C
RMBuf
*
|
Last
|
(
|
)
|
|
Last MBuf in a chain. Not really supposed to be in
RMBuf
, but putting it here allows the code to be shared by
RMBufChain
and
RMBufQ
Length()
TInt
|
Length
|
(
|
)
|
const [inline]
|
Link(RMBuf *)
void
|
Link
|
(
|
RMBuf
*
|
aBuf
|
)
|
[inline]
|
Next()
RMBuf
*
|
Next
|
(
|
)
|
[inline]
|
Next()
const
RMBuf
*
|
Next
|
(
|
)
|
const [inline]
|
Offset()
TInt
|
Offset
|
(
|
)
|
const [inline]
|
Ptr()
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
RCommsBuf::RawBase
Put(TUint8, TInt)
void
|
Put
|
(
|
TUint8
|
aVal,
|
|
TInt
|
aOffset = 0
|
|
)
|
[inline]
|
SetData(TInt, TInt)
void
|
SetData
|
(
|
TInt
|
aOffset,
|
|
TInt
|
aLength
|
|
)
|
[inline]
|
SetLength(TInt)
void
|
SetLength
|
(
|
TInt
|
aLength
|
)
|
[inline]
|
SetOffset(TInt)
void
|
SetOffset
|
(
|
TInt
|
aOffset
|
)
|
[inline]
|
SetType(TMBufType)
void
|
SetType
|
(
|
TMBufType
|
aType
|
)
|
[inline]
|
Size()
TInt
|
Size
|
(
|
)
|
const [inline]
|
Type()
TMBufType
|
Type
|
(
|
)
|
const [inline]
|
UnlinkPkt()
void
|
UnlinkPkt
|
(
|
)
|
[inline]
|
__DbgGet(TInt)
IMPORT_C
TUint8
|
__DbgGet
|
(
|
TInt
|
aOffset = 0
|
)
|
const [private]
|
__DbgPut(TUint8, TInt)
IMPORT_C void
|
__DbgPut
|
(
|
TUint8
|
aVal,
|
|
TInt
|
aOffset = 0
|
|
)
|
[private]
|
operator delete(TAny *, TUint8 *)
void
|
operator delete
|
(
|
TAny
*
|
aPtr,
|
|
TUint8
*
|
|
|
)
|
[private]
|
operator new(TUint, TUint8 *)
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.