equal
deleted
inserted
replaced
|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "UM_STD.H" |
|
17 |
|
18 GLDEF_C void Panic(TMemPanic aPanic) |
|
19 // |
|
20 // Panic the process with STORE-Memory as the category. |
|
21 // |
|
22 { |
|
23 _LIT(KCategory,"STORE-Memory"); |
|
24 User::Panic(KCategory,aPanic); |
|
25 } |
|
26 |
|
27 HBufBuf* HBufBuf::NewL(CBufBase& aBuf,TInt aPos,TInt aMode) |
|
28 // |
|
29 // Create a pre-set buffer stream buffer. |
|
30 // |
|
31 { |
|
32 HBufBuf* buf=new(ELeave) HBufBuf; |
|
33 buf->Set(aBuf,aPos,aMode); |
|
34 return buf; |
|
35 } |
|
36 |
|
37 void HBufBuf::DoRelease() |
|
38 // |
|
39 // Finished with this stream buffer. |
|
40 // |
|
41 { |
|
42 delete this; |
|
43 } |
|
44 |