用心快乐、用心成功

用心.NET

博客园 首页 新随笔 联系 订阅 管理

CRC 校验有 CRC 8位 16位 32位 所以在实现这些校验算发之前,先实现它们的接口!

using System;

namespace CRC
{
 public interface ICRC
 {
    
  long Value
  {
    get;
  }
  
  void Reset();
  
  void Crc(int bval);
  
  void Crc(byte[] buffer);
  
  void Crc(byte[] buf, int off, int len);

 }
}

posted on 2004-12-27 14:20  用心(Canny)  阅读(4367)  评论(2编辑  收藏  举报