man rbuf_hash (Fonctions bibliothèques) - string hash functions optimized for rbufs

NAME

rbuf_hash, rbuf_hash2 - string hash functions optimized for rbufs

SYNOPSIS

#include <roy.h>

unsigned long int rbuf_hash (RBuf *buf); unsigned long int rbuf_hash2 (RBuf *buf);

DESCRIPTION

The rubf_hash(3) routine is a reimplementation of the x31 hash routine used by glib and other libraries.

The rbuf_hash2(3) routine is an optimized version of the rbuf_hash(3) code, which works for us. Programmers should only use this routine if rbuf_hash(3) isn't fast enough, which it should be for most things.

RETURN VALUE

These function return a hash value created from hashing the contents of buf.

ERRORS

Calls to rbuf_hash(3) and rbuf_hash2(3) can never fail.

MACRO

These calls are implemented using functions.

SEE ALSO