fsautoproc
Basic file transformation automation management utility
Loading...
Searching...
No Matches
xx.h File Reference

xxHash64 file hashing functions. More...

#include <stddef.h>
#include <stdint.h>
Include dependency graph for xx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  xxreq_s
 File hash request structure for processing file hash changes. More...
 

Macros

#define XXBUFSZE   65536
 Size of the buffer used for reading files to hash.
 

Functions

uint64_t xxupdate (const struct xxreq_s *req)
 Processes a file hash request. If the file's last modified time or size differ from the previous stat info pst, the file is re-hashed and the current hash value is returned. Otherwise the previous pxx hash value is returned indicating no change.
 

Detailed Description

xxHash64 file hashing functions.

Macro Definition Documentation

◆ XXBUFSZE

#define XXBUFSZE   65536

Size of the buffer used for reading files to hash.

Function Documentation

◆ xxupdate()

uint64_t xxupdate ( const struct xxreq_s req)

Processes a file hash request. If the file's last modified time or size differ from the previous stat info pst, the file is re-hashed and the current hash value is returned. Otherwise the previous pxx hash value is returned indicating no change.

Parameters
reqThe file hash request structure containing the filepath, previous and current stat info, and previous hash value (if known).
Returns
0 if an error occurred, otherwise the current hash value.
Here is the call graph for this function:
Here is the caller graph for this function: