equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef PADPACKET_H_2B31B9BD_01D6_4f35_B525_4E07C03D7762 |
|
23 #define PADPACKET_H_2B31B9BD_01D6_4f35_B525_4E07C03D7762 |
|
24 |
|
25 #if ! defined __E32DEF_H__ |
|
26 // Win32 code. |
|
27 typedef signed int TInt; |
|
28 typedef int TBool; |
|
29 #endif // ! defined __E32DEF_H__ |
|
30 |
|
31 static const int packetMultiple = 64; |
|
32 static const unsigned char packetPad = 'S'; |
|
33 |
|
34 inline TBool PadPacket( TInt packetSize ) |
|
35 { |
|
36 return ( 0 == ( packetSize % packetMultiple ) ); |
|
37 } |
|
38 |
|
39 #endif // defined PADPACKET_H_2B31B9BD_01D6_4f35_B525_4E07C03D7762 |