POCOライブラリ中国語プログラミングリファレンスガイド(2)基本データ型(Poco/Types.h)


POCOライブラリ中国語プログラミングリファレンスガイド(2)基本データ型
著者:柳大・Poechant ブログ:Blog.CSDN.net/Poechant
メールアドレス:zhongchao.ustc#gmail.com (# -> @)
日付:April 14 th、2012 基本タイプはPoco/Types.hヘッダファイルにあります.以下、GNU C/C++およびCLangを例に挙げる.しかし、POCOには素晴らしいプラットフォーム間性があり、あなたが考えることができるプラットフォームは、ほとんどPOCOを実行することができます.
1符号付き整数
typedef signed char            Int8;
typedef signed short           Int16;
typedef signed int             Int32;

2符号なし整数
typedef unsigned char          UInt8;
typedef unsigned short         UInt16;
typedef unsigned int           UInt32;

3 Pointer or Handler
typedef signed long            IntPtr;
typedef unsigned long          UIntPtr;

4 64ビット整数
32ビットマシンと64ビットマシンを考慮した場合
#if defined(__LP64__)
    #define POCO_PTR_IS_64_BIT 1
    #define POCO_LONG_IS_64_BIT 1
    typedef signed long        Int64;
    typedef unsigned long      UInt64;
#else
    typedef signed long long   Int64;
    typedef unsigned long long UInt64;
#endif
#define POCO_HAVE_INT64 1

-
転載は柳大からのCSDNブログ:Blogを明記してください.CSDN.net/Poechant
-