[PR]

水無瀬の部屋 > Programming > sample > tools > misc > crc16.h
最終更新日: 2000/02/14

   1: //*********************************************************
   2: // プロジェクト: CRC
   3: //   ファイル名: crc16.h
   4: //*********************************************************
   5: #ifndef CRC16_HEAD_INCLUDED
   6: #define CRC16_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 CRC16_CTX_tag CRC16_CTX;
  24: 
  25: 
  26: //*********************************************************
  27: // 関数 の 宣言
  28: //*********************************************************
  29: #ifdef __cplusplus
  30: extern "C" {
  31: #endif
  32: 
  33: 
  34: // crc16.cpp
  35: CRC16_CTX *CRC16_CreateAlgorithm( WORD poly );
  36: bool       CRC16_DestroyAlgorithm( CRC16_CTX *context );
  37: bool       CRC16_InitData( CRC16_CTX *context, WORD poly );
  38: WORD       CRC16_AddData( CRC16_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: 
  45: #ifdef __cplusplus
  46: } // extern "C"
  47: #endif
  48: 
  49: 
  50: #endif // #ifndef CRC16_HEAD_INCLUDED
  51: 
  52: 
  53: //** end **

参照: crc16.cpp


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

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

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

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