Checksum functions¶
-
uint64_t apfs::calculate_fletcher64_checksum(const uint8_t *buffer, size_t size, uint64_t initial_value = 0)¶
NOTE: If you’re using the public API, you will never actually have to use this directly yourself! Calculates and returns the Fletcher-64 of a buffer of data.
-
bool apfs::verify_object_checksum(void *object, size_t block_size)¶
NOTE: If you’re using the public API, you will never actually have to use this directly yourself! Returns true if the object checksum is correct.