equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-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 #ifndef BYTE_PAIR_H |
|
17 #define BYTE_PAIR_H |
|
18 #define __PLACEMENT_NEW_INLINE |
|
19 #define __PLACEMENT_VEC_NEW_INLINE |
|
20 /* |
|
21 #ifdef __VC32__ |
|
22 #ifdef __MSVCDOTNET__ |
|
23 #include <strstream> |
|
24 #include <iomanip> |
|
25 // #include <ostream.h> |
|
26 #else //!__MSVCDOTNET__ |
|
27 #include <strstrea.h> |
|
28 #include <iomanip.h> |
|
29 #endif //__MSVCDOTNET__ |
|
30 #else // !__VC32__ |
|
31 #include <strstream.h> |
|
32 #include <iomanip.h> |
|
33 #endif // __VC32__ |
|
34 */ |
|
35 #ifdef __TOOLS2__ |
|
36 #include <sstream> |
|
37 #include <ostream> |
|
38 using namespace std; |
|
39 #else |
|
40 #include <strstream> |
|
41 #include <ostream.h> |
|
42 #endif |
|
43 |
|
44 |
|
45 #include <e32cmn.h> |
|
46 |
|
47 TInt BytePairCompress(TUint8* dst, TUint8* src, TInt size); |
|
48 TInt Pak(TUint8* dst, TUint8* src, TInt size); |
|
49 TInt Unpak(TUint8* dst, TInt dstSize, TUint8* src, TInt srcSize, TUint8*& srcNext); |
|
50 void BytePairCompress(char * bytes, TInt size, ostream &os); |
|
51 |
|
52 #endif |