MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / write

Method write

src/simulate/simulate_fn_hash.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 const uint64_t fnv_prime = 1099511628211ul;
29 uint64_t offset_basis = 14695981039346656037ul;
30 __forceinline void write ( const void * pb, uint32_t size ) {
31 const uint8_t * block = (const uint8_t *) pb;
32 while ( size-- ) {
33 offset_basis = ( offset_basis ^ *block++ ) * fnv_prime;
34 }
35 debug_hash("%" PRIx64 " ", offset_basis);
36 }
37 __forceinline void write ( const void * pb ) {
38 const uint8_t * block = (const uint8_t *) pb;
39 for (; *block; block++) {

Callers 1

getFunctionHashFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected