[PR]

『新妻LOVELY×CATION』を応援しています!
水無瀬の部屋 > Programming > sample > tools > misc > crc32.h
最終更新日: 2000/02/14

   1: //*********************************************************
   2: // プロジェクト: CRC
   3: //   ファイル名: crc32.h
   4: //*********************************************************
   5: #ifndef CRC32_HEAD_INCLUDED
   6: #define CRC32_HEAD_INCLUDED
   7: 
   8: 
   9: //*********************************************************
  10: // コンパイル環境の指定
  11: //*********************************************************
  12: #ifndef PRIVATE_TOOLS_HEAD_INCLUDED // 冗長ガード
  13: #include <header/_tools.h>
  14: #ifndef PRIVATE_TOOLS_HEAD_INCLUDED // ガード名の検査
  15: #error "? PRIVATE_TOOLS_HEAD_INCLUDED"
  16: #endif // #ifndef PRIVATE_TOOLS_HEAD_INCLUDED
  17: #endif // #ifndef PRIVATE_TOOLS_HEAD_INCLUDED
  18: 
  19: 
  20: //*********************************************************
  21: // 構造体 の 宣言
  22: //*********************************************************
  23: typedef struct CRC32_CTX_tag CRC32_CTX;
  24: 
  25: 
  26: //*********************************************************
  27: // 関数 の 宣言
  28: //*********************************************************
  29: #ifdef __cplusplus
  30: extern "C" {
  31: #endif
  32: 
  33: 
  34: // crc32.cpp
  35: CRC32_CTX *CRC32_CreateAlgorithm( WORD poly );
  36: bool       CRC32_DestroyAlgorithm( CRC32_CTX *context );
  37: bool       CRC32_InitData( CRC32_CTX *context, DWORD poly );
  38: DWORD      CRC32_AddData( CRC32_CTX *context, const void *data, int length );
  39: //bool     CRC16_AddData( CRC16_CTX *context, const void *data, int length );
  40: //bool     CRC16_GetHash( const CRC16_CTX *context, void *digest, int bufsize );
  41: //bool     CRC16_GetHashText( const CRC16_CTX *context, char *buf, int bufsize );
  42: 
  43: 
  44: #ifdef __cplusplus
  45: } // extern "C"
  46: #endif
  47: 
  48: 
  49: #endif // #ifndef CRC32_HEAD_INCLUDED
  50: 
  51: 
  52: //** end **

参照: crc32.cpp


Google
ご意見・ご感想をお聞かせ下さい。匿名で送信できます。

 * 返信が必要な場合には postmaster@katsura-kotonoha.sakura.ne.jp へ直接メールしてください。

水無瀬の部屋 > sample > tools > misc > crc32.h

このページは cpp2web が出力しました。
水無瀬 優 postmaster@katsura-kotonoha.sakura.ne.jp
http://katsura-kotonoha.sakura.ne.jp/prog/code/tools/misc/crc32_h.shtml
『新妻LOVELY×CATION』を応援しています!