Botan 1.10.17
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*/
17namespace Botan {
18
19/**
20* Typedef representing an unsigned 8-bit quantity
21*/
22typedef unsigned char byte;
23
24/**
25* Typedef representing an unsigned 16-bit quantity
26*/
27typedef unsigned short u16bit;
28
29/**
30* Typedef representing an unsigned 32-bit quantity
31*/
32typedef unsigned int u32bit;
33
34/**
35* Typedef representing a signed 32-bit quantity
36*/
37typedef 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*/
55static const size_t DEFAULT_BUFFERSIZE = BOTAN_DEFAULT_BUFFER_SIZE;
56
57}
58
59namespace Botan_types {
60
61using Botan::byte;
62using Botan::u32bit;
63
64}
65
66#endif
signed int s32bit
Definition types.h:37
unsigned long long u64bit
Definition types.h:49
unsigned char byte
Definition types.h:22
unsigned int u32bit
Definition types.h:32
unsigned short u16bit
Definition types.h:27