2002-07-30 18:40:34 +02:00
|
|
|
#ifndef _CRC32_H
|
|
|
|
#define _CRC32_H
|
|
|
|
|
2006-03-11 05:38:42 +01:00
|
|
|
/* $PostgreSQL: pgsql/contrib/ltree/crc32.h,v 1.3 2006/03/11 04:38:29 momjian Exp $ */
|
|
|
|
|
2002-07-30 18:40:34 +02:00
|
|
|
/* Returns crc32 of data block */
|
2002-08-10 22:46:24 +02:00
|
|
|
extern unsigned int ltree_crc32_sz(char *buf, int size);
|
2002-07-30 18:40:34 +02:00
|
|
|
|
|
|
|
/* Returns crc32 of null-terminated string */
|
2002-08-10 22:46:24 +02:00
|
|
|
#define crc32(buf) ltree_crc32_sz((buf),strlen(buf))
|
2002-07-30 18:40:34 +02:00
|
|
|
|
|
|
|
#endif
|