This function will take input data from a buffer and returns a crc32 checksum hash. You specify the buffer ID of the buffer to use, then an offset value (in bytes) for where to begin, and then a size (again in bytes) for the region to be hashed, and the function will return a 32 bit integer value for that region.
buffer_crc32(buffer, offset, size);
| Argument | Description |
|---|---|
| buffer | The index of the buffer to use. |
| offset | The data offset value. |
| size | The size of the buffer. |
String
check_string = buffer_sha1(buff, 0, buffer_get_size(buff));
The above code will create a crc32 checksum hash for the full data stored in the buffer indexed by the variable "buff", and store the returned hash in the variable "check_string".