/* Compile the pinned, unmodified amalgamation to access the private oracle. */ #include "sqlite3.c" #include int oracle_encode(uint8_t bytes[9], uint64_t value) { return sqlite3PutVarint(bytes, value); } int oracle_decode(const uint8_t bytes[9], uint64_t *value) { u64 decoded; int consumed = sqlite3GetVarint(bytes, &decoded); *value = decoded; return consumed; }