diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-20 19:37:39 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-20 19:37:39 +0200 |
commit | 35119a9d3750bf786e841c25a46cd59ea2117462 (patch) | |
tree | f44b0dd575008b2bda31fa1969897596b9211e68 /modules/codec/c++ | |
parent | ea00856f9480abca0aa4510e09770d843176ef07 (diff) |
wip
Diffstat (limited to 'modules/codec/c++')
-rw-r--r-- | modules/codec/c++/transport.hpp | 36 |
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>(); + } +}; +} |