Buckets:

soixantesept's picture
download
raw
379 Bytes
#pragma once
#include <cstdint>
struct HashElementForMatchPositions {
static constexpr size_t N = 3;
uint32_t matchPositions[N];
void Add(uint32_t pos) {
if (N > 1) {
memmove(&matchPositions[1], &matchPositions[0], (N - 1) * sizeof(matchPositions[0]));
}
matchPositions[0] = pos;
}
};
static_assert(sizeof(HashElementForMatchPositions) == 3 * 4);

Xet Storage Details

Size:
379 Bytes
·
Xet hash:
d393eb26a76bd9267e5befe64dba3ee9464b1ae7526867a0321f5087a305c26f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.