summaryrefslogtreecommitdiff
path: root/modules/codec/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++')
-rw-r--r--modules/codec/c++/transport.hpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/modules/codec/c++/transport.hpp b/modules/codec/c++/transport.hpp
index db277d1..430f719 100644
--- a/modules/codec/c++/transport.hpp
+++ b/modules/codec/c++/transport.hpp
@@ -1,5 +1,8 @@
#pragma once
+#include <forstio/buffer.hpp>
+#include "data.hpp"
+
namespace saw {
namespace transport {
template<uint64_t Len = 8u>
@@ -12,23 +15,16 @@ 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>> {
+template<typename Schema, uint64_t Len>
+struct codec<Schema, transport::FixedLength<Len>> {
private:
public:
- error_or<buffer_view> view_slice(const buffer& buff) const {
+ error_or<buffer_view> view_slice(buffer& buff) const {
(void) buff;
return make_error<err::not_implemented>();
}
- error_or<array_buffer> chain_slice(buffer& buff) const {
+ error_or<array_buffer> chain_slice(chain_array_buffer& buff) const {
(void) buff;
return make_error<err::not_implemented>();
}