From b2548ba4ce295fcd94a50123fb543fac2ef2bc33 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 14 Nov 2024 14:46:23 -0500 Subject: add pk.h and major pkmem refactor Completely replaces the memory module with pkmem pkmem is a newer implementation of the same bucket memory structure. Also includes replacing pkstr.h with pk.h's pkstr --- src/pkstr.hpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/pkstr.hpp (limited to 'src/pkstr.hpp') diff --git a/src/pkstr.hpp b/src/pkstr.hpp deleted file mode 100644 index 0f2fb0d..0000000 --- a/src/pkstr.hpp +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef PKE_STRING_HPP -#define PKE_STRING_HPP - -#include - -struct pkstr { - int64_t length = 0; - char *val = nullptr; -}; -struct cpkstr { - int64_t length = 0; - const char *val = nullptr; -}; - -pkstr to_pkstr(char *s); -pkstr to_pkstr(const cpkstr &s); -cpkstr to_cpkstr(const char *s); -cpkstr to_cpkstr(const pkstr &s); - -#endif /* PKE_STRING_HPP */ -- cgit v1.2.3