VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_uint_of_buffer()

[added in version 1.5]

Calculate a number of an arbitrary byte-buffer using the Horner's scheme.
SYNTAX
unsigned int VG3_uint_of_buffer(const void *vbuf, size_t vsize, unsigned int uflag)

FUNCTION PARAMETERS
vbuf Arbitrary buffer
vsize Size of buffer in bytes
uflag Arbitrary number for modification of the return value

RETURN VALUE
Returns an unsigned integer.

DESCRIPTION
Calculates a number of an arbitrary byte-buffer using the Horner's scheme. With uflag the default prime number will be modified.