From 35119a9d3750bf786e841c25a46cd59ea2117462 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 20 Jul 2024 19:37:39 +0200 Subject: wip --- modules/codec/c++/transport.hpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/codec/c++/transport.hpp (limited to 'modules/codec/c++') diff --git a/modules/codec/c++/transport.hpp b/modules/codec/c++/transport.hpp new file mode 100644 index 0000000..db277d1 --- /dev/null +++ b/modules/codec/c++/transport.hpp @@ -0,0 +1,36 @@ +#pragma once + +namespace saw { +namespace transport { +template +struct FixedLength {}; + +template +struct VarLength {}; + +struct NewLine {}; +struct CarriageReturnNewLine {}; +} + +template +struct transport { +private: + static_assert(always_false, "Transport kind not supported."); +public: + + +template +struct transport> { +private: +public: + error_or view_slice(const buffer& buff) const { + (void) buff; + return make_error(); + } + + error_or chain_slice(buffer& buff) const { + (void) buff; + return make_error(); + } +}; +} -- cgit v1.2.3