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 <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.
Definition at line 148 of file GridChecksum.h.
nanovdb::GridChecksum::GridChecksum |
( |
| ) |
|
|
inline |
default constructor initiates checksum to EMPTY
Definition at line 162 of file GridChecksum.h.
nanovdb::GridChecksum::GridChecksum |
( |
uint32_t |
head, |
|
|
uint32_t |
tail |
|
) |
| |
|
inline |
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 |
Definition at line 167 of file GridChecksum.h.
uint64_t nanovdb::GridChecksum::checksum |
( |
| ) |
const |
|
inline |
return the 64 bit checksum of this instance
Definition at line 178 of file GridChecksum.h.
uint32_t& nanovdb::GridChecksum::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
Definition at line 183 of file GridChecksum.h.
uint32_t nanovdb::GridChecksum::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
Definition at line 188 of file GridChecksum.h.
bool nanovdb::GridChecksum::isEmpty |
( |
| ) |
const |
|
inline |
return true if the 64 bit checksum is disables (unset)
Definition at line 197 of file GridChecksum.h.
bool nanovdb::GridChecksum::isFull |
( |
| ) |
const |
|
inline |
return true if the 64 bit checksum is fill, i.e. of both had and nodes
Definition at line 194 of file GridChecksum.h.
bool nanovdb::GridChecksum::isPartial |
( |
| ) |
const |
|
inline |
return true if the 64 bit checksum is partial, i.e. of head only
Definition at line 191 of file GridChecksum.h.
return the mode of the 64 bit checksum
Definition at line 200 of file GridChecksum.h.
return true if the checksums are not identical
- Parameters
-
Definition at line 224 of file GridChecksum.h.
compute checksum of gridData
using a 4KB blocked approach
- Parameters
-
gridData | Reference to GridData |
mode | Mode of the checksum computation |
Definition at line 231 of file GridChecksum.h.
bool nanovdb::GridChecksum::operator== |
( |
const GridChecksum & |
rhs | ) |
const |
|
inline |
return true if the checksums are identical
- Parameters
-
Definition at line 220 of file GridChecksum.h.
constexpr uint64_t nanovdb::GridChecksum::EMPTY = ~uint64_t(0) |
|
static |
uint64_t nanovdb::GridChecksum::mChecksum |
uint32_t nanovdb::GridChecksum::mCRC[2] |
The documentation for this class was generated from the following file: