equal
deleted
inserted
replaced
74 @param aLength The length of the chain |
74 @param aLength The length of the chain |
75 @param aStatus The request status |
75 @param aStatus The request status |
76 @param aAllocator The handle to the allocator |
76 @param aAllocator The handle to the allocator |
77 */ |
77 */ |
78 { |
78 { |
79 iAsyncReqImpl->Alloc(aChain, aSize, aMinSize, aMaxSize, aStatus); |
79 __ASSERT_ALWAYS(iAsyncReqImpl != NULL, CommsBuf::Panic(EMBuf_InvalidAsyncReqImpl)); |
|
80 iAsyncReqImpl->Alloc(aChain, aSize, aMinSize, aMaxSize, aStatus); |
80 } |
81 } |
81 |
82 |
82 |
83 |
83 EXPORT_C void RCommsBufAsyncRequest::Cancel() |
84 EXPORT_C void RCommsBufAsyncRequest::Cancel() |
84 /** |
85 /** |
85 Cancel the asynchronous request |
86 Cancel the asynchronous request |
86 */ |
87 */ |
87 { |
88 { |
88 iAsyncReqImpl->Cancel(); |
89 if (iAsyncReqImpl) |
|
90 { |
|
91 iAsyncReqImpl->Cancel(); |
|
92 } |
89 } |
93 } |
90 |
94 |
91 EXPORT_C void RCommsBufAsyncRequest::Complete(TInt aCode) |
95 EXPORT_C void RCommsBufAsyncRequest::Complete(TInt aCode) |
92 /** |
96 /** |
93 Complete the request. |
97 Complete the request. |
94 |
98 |
95 @param aCode The request completion code |
99 @param aCode The request completion code |
96 */ |
100 */ |
97 { |
101 { |
|
102 __ASSERT_ALWAYS(iAsyncReqImpl != NULL, CommsBuf::Panic(EMBuf_InvalidAsyncReqImpl)); |
98 iAsyncReqImpl->Complete(aCode); |
103 iAsyncReqImpl->Complete(aCode); |
99 } |
104 } |