Botan: src/utils/types.h Source File

Botan 1.10.16

types.h
Go to the documentation of this file.
1 /*
2 * Low Level Types
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_TYPES_H__
9 #define BOTAN_TYPES_H__
10
11 #include <botan/build.h>
12 #include <stddef.h>
13
14 /**
15 * The primary namespace for the botan library
16 */
17 namespace Botan {
18
19 /**
20 * Typedef representing an unsigned 8-bit quantity
21 */
22 typedef unsigned char byte;
23
24 /**
25 * Typedef representing an unsigned 16-bit quantity
26 */
27 typedef unsigned short u16bit;
28
29 /**
30 * Typedef representing an unsigned 32-bit quantity
31 */
32 typedef unsigned int u32bit;
33
34 /**
35 * Typedef representing a signed 32-bit quantity
36 */
37 typedef signed int s32bit;
38
39 /**
40 * Typedef representing an unsigned 64-bit quantity
41 */
42 #if defined(_MSC_VER) || defined(__BORLANDC__)
43 typedef unsigned __int64 u64bit;
44 #elif defined(__KCC)
45 typedef unsigned __long_long u64bit;
46 #elif defined(__GNUG__)
47 __extension__ typedef unsigned long long u64bit;
48 #else
49 typedef unsigned long long u64bit;
50 #endif
51
52 /**
53 * A default buffer size; typically a memory page
54 */
55 static const size_t DEFAULT_BUFFERSIZE = BOTAN_DEFAULT_BUFFER_SIZE;
56
57 }
58
59 namespace Botan_types {
60
61 using Botan::byte;
62 using Botan::u32bit;
63
64 }
65
66 #endif
Botan::s32bit
signed int s32bit
Definition: types.h:37
Botan::byte
unsigned char byte
Definition: types.h:22
Botan::u64bit
unsigned long long u64bit
Definition: types.h:49
Botan::u16bit
unsigned short u16bit
Definition: types.h:27
Botan
Definition: algo_base.h:14
Botan_types
Definition: types.h:59
Botan::u32bit
unsigned int u32bit
Definition: types.h:32