Botan  1.11.15
src/lib/utils/types.h
Go to the documentation of this file.
00001 /*
00002 * Low Level Types
00003 * (C) 1999-2007 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_TYPES_H__
00009 #define BOTAN_TYPES_H__
00010 
00011 #include <botan/build.h>
00012 #include <botan/assert.h>
00013 #include <cstddef>
00014 #include <stdint.h>
00015 #include <memory>
00016 
00017 /**
00018 * The primary namespace for the botan library
00019 */
00020 namespace Botan {
00021 
00022 using ::uint8_t;
00023 using ::uint16_t;
00024 using ::uint32_t;
00025 using ::uint64_t;
00026 using ::int32_t;
00027 using ::int64_t;
00028 
00029 using ::size_t;
00030 
00031 typedef uint8_t byte;
00032 typedef uint16_t u16bit;
00033 typedef uint32_t u32bit;
00034 typedef uint64_t u64bit;
00035 
00036 typedef int32_t s32bit;
00037 
00038 /**
00039 * A default buffer size; typically a memory page
00040 */
00041 static const size_t DEFAULT_BUFFERSIZE = BOTAN_DEFAULT_BUFFER_SIZE;
00042 
00043 }
00044 
00045 namespace Botan_types {
00046 
00047 using Botan::byte;
00048 using Botan::u32bit;
00049 
00050 }
00051 
00052 #endif