summaryrefslogtreecommitdiff
path: root/modules/codec/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++')
-rw-r--r--modules/codec/c++/transport.hpp36
1 files changed, 36 insertions, 0 deletions
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<uint64_t Len = 8u>
+struct FixedLength {};
+
+template<uint64_t Len = 8u>
+struct VarLength {};
+
+struct NewLine {};
+struct CarriageReturnNewLine {};
+}
+
+template<typename Transport>
+struct transport {
+private:
+ static_assert(always_false<Transport>, "Transport kind not supported.");
+public:
+
+
+template<uint64_t Len>
+struct transport<transport::FixedLength<Len>> {
+private:
+public:
+ error_or<buffer_view> view_slice(const buffer& buff) const {
+ (void) buff;
+ return make_error<err::not_implemented>();
+ }
+
+ error_or<array_buffer> chain_slice(buffer& buff) const {
+ (void) buff;
+ return make_error<err::not_implemented>();
+ }
+};
+}