Goddess of Justice DB, the database used for storage on IzaroDFS
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
#pragma once
|
|
#include "endian.hpp"
|
|
#include "database.hpp"
|
|
|
|
|
|
enum class db_op : uint32_t {
|
|
version = 0,
|
|
read = 1,
|
|
write = 2,
|
|
remove = 3
|
|
};
|
|
|
|
struct [[gnu::packed]] received_data {
|
|
bitops::regulated<db_op> op = db_op::version;
|
|
bitops::regulated<uint64_t> rep_id = 0;
|
|
record_identifier identifier = record_identifier{};
|
|
db_page page = {0};
|
|
};
|
|
|
|
struct [[gnu::packed]] sending_data {
|
|
bitops::regulated<uint64_t> rep_id = 0;
|
|
record_identifier identifier = record_identifier{};
|
|
db_page page = {0};
|
|
};
|