postgresql/contrib/ltree/crc32.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
269 B
C
Raw Permalink Normal View History

2023-05-09 21:11:15 +00:00
#ifndef _CRC32_H
#define _CRC32_H
/* contrib/ltree/crc32.h */
/* Returns crc32 of data block */
extern unsigned int ltree_crc32_sz(const char *buf, int size);
/* Returns crc32 of null-terminated string */
#define crc32(buf) ltree_crc32_sz((buf),strlen(buf))
#endif