crc.pp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {$MACRO ON}
  2. (******************************************************************************
  3. *
  4. * Copyright (c) 1995-2000 Palm Computing, Inc. or its subsidiaries.
  5. * All rights reserved.
  6. *
  7. * File: Crc.h
  8. *
  9. * Release: Palm OS SDK 4.0 (63220)
  10. *
  11. * Description:
  12. * This is the header file for the CRC calculation routines for Pilot.
  13. *
  14. * History:
  15. * May 10, 1995 Created by Vitaly Kruglikov
  16. * 05/10/95 vmk Created by Vitaly Kruglikov.
  17. * 09/10/99 kwk Crc16CalcBlock takes a const void *.
  18. *
  19. *****************************************************************************)
  20. unit crc;
  21. interface
  22. uses palmos, coretraps;
  23. (********************************************************************
  24. * CRC Calculation Routines
  25. * These are define as syscall calls only under emulation mode or
  26. * under native mode from the module that actually installs the trap
  27. * vectors
  28. ********************************************************************)
  29. //-------------------------------------------------------------------
  30. // API
  31. //-------------------------------------------------------------------
  32. // Crc16CalcBlock()
  33. //
  34. // Calculate the 16-bit CRC of a data block using the table lookup method.
  35. //
  36. function Crc16CalcBlock(const bufP: Pointer; count, crc: UInt16): UInt16; syscall sysTrapCrc16CalcBlock;
  37. //UInt16 Crc16CalcBigBlock(void *bufP, UInt32 count, UInt16 crc);
  38. implementation
  39. end.