Class that encapsulates two CRC32 checksums, one for the Grid, Tree and Root node meta data and one for the remaining grid nodes.
More...
#include <nanovdb/util/GridChecksum.h>
|
static constexpr uint64_t | EMPTY = ~uint64_t(0) |
|
Class that encapsulates two CRC32 checksums, one for the Grid, Tree and Root node meta data and one for the remaining grid nodes.
default constructor initiates checksum to EMPTY
Constructor that allows the two 32bit checksums to be initiated explicitly.
- Parameters
-
head | Initial 32bit CRC checksum of grid, tree and root data |
tail | Initial 32bit CRC checksum of all the nodes and blind data |
uint64_t checksum |
( |
| ) |
const |
|
inline |
return the 64 bit checksum of this instance
uint32_t& checksum |
( |
int |
i | ) |
|
|
inline |
return 32 bit (crc32) checksum of this instance
- Parameters
-
i | index of value 0 or 1 indicated the 32 bit checksum of the head or nodes |
- Returns
- non-const reference of the i'th 32bit checksum
uint32_t checksum |
( |
int |
i | ) |
const |
|
inline |
return 32 bit (crc32) checksum of this instance
- Parameters
-
i | index of value 0 or 1 indicated the 32 bit checksum of the head or nodes |
- Returns
- copy of the i'th 32bit checksum
return true if the 64 bit checksum is disables (unset)
return true if the 64 bit checksum is fill, i.e. of both had and nodes
return true if the 64 bit checksum is partial, i.e. of head only
return the mode of the 64 bit checksum
return true if the checksums are not identical
- Parameters
-
compute checksum of gridData
using a 4KB blocked approach
- Parameters
-
gridData | Reference to GridData |
mode | Mode of the checksum computation |
return true if the checksums are identical
- Parameters
-
constexpr uint64_t EMPTY = ~uint64_t(0) |
|
static |