equal
deleted
inserted
replaced
53 // RMPXDataItem::Copy |
53 // RMPXDataItem::Copy |
54 // ----------------------------------------------------------------------------- |
54 // ----------------------------------------------------------------------------- |
55 // |
55 // |
56 void RMPXDataItem::Copy(TUint aClientHandle,TAny* aSrc,TInt aSize) |
56 void RMPXDataItem::Copy(TUint aClientHandle,TAny* aSrc,TInt aSize) |
57 { |
57 { |
58 MPX_ASSERT(aSrc&&aClientHandle); |
58 //The source could be zero-length descriptor: aSize is 0 and aSrc is NULL |
|
59 //ASSERT if aSrc is NULL while aSize is not zero, invalid descriptor |
|
60 MPX_ASSERT(((aSrc!=NULL)?ETrue:(aSize==0))&&aClientHandle); |
|
61 |
59 // |
62 // |
60 Reset(aClientHandle); |
63 Reset(aClientHandle); |
61 RMPXHeapManager& m=RMPXHeapManager::HeapManager(aClientHandle); |
64 RMPXHeapManager& m=RMPXHeapManager::HeapManager(aClientHandle); |
62 //Set uid for this item |
65 //Set uid for this item |
63 iUid=m.IncrementCounter(); |
66 iUid=m.IncrementCounter(); |