From fd35c046e8bcfa8cd8ee5566084016c56f57bb42 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 22 Jun 2023 14:45:39 +0200 Subject: c++,codec: Protocol forst cleanup --- src/codec/forst.h | 4 ++-- src/codec/proto_forst.h | 61 ------------------------------------------------- 2 files changed, 2 insertions(+), 63 deletions(-) delete mode 100644 src/codec/proto_forst.h (limited to 'src') diff --git a/src/codec/forst.h b/src/codec/forst.h index fee5fa6..cadf78e 100644 --- a/src/codec/forst.h +++ b/src/codec/forst.h @@ -4,10 +4,10 @@ namespace saw { namespace encode { -struct Forst {}; +struct KelForst {}; } -class data { +class data { }; } diff --git a/src/codec/proto_forst.h b/src/codec/proto_forst.h deleted file mode 100644 index 1f390fe..0000000 --- a/src/codec/proto_forst.h +++ /dev/null @@ -1,61 +0,0 @@ -#pragma once - -#include "data.h" - -#include - -namespace saw { -namespace encode { -struct ProtoForst {}; -} - -template -class data { -private: - own buffer_; -public: - data(own&& buffer__):buffer_{std::move(buffer__)}{} - - buffer& get_buffer(){ - return *buffer_; - } - - const buffer& get_buffer() const { - return *buffer_; - } -}; -namespace impl { -template -class codec, encode::ProtoForst> { - - - static error encode(typename const data, encode::Native>& native){ - - return no_error(); - } - - static uint64_t size(const data, encode::Native>& d) { - return static_cast(N); - } -}; -} -template -class codec { -public: - using meta_type = uint64_t; -private: -public: - error_or> decode(const data& encoded){ - - - return make_error(); - } - - error_or> encode(const data& native){ - uint64_t length = 0; - - return make_error(); - } -}; -} -} -- cgit v1.2.3