blob: 430f7192e294daad294ff98b2b5155df1c3053b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include <forstio/buffer.hpp>
#include "data.hpp"
namespace saw {
namespace transport {
template<uint64_t Len = 8u>
struct FixedLength {};
template<uint64_t Len = 8u>
struct VarLength {};
struct NewLine {};
struct CarriageReturnNewLine {};
}
template<typename Schema, uint64_t Len>
struct codec<Schema, transport::FixedLength<Len>> {
private:
public:
error_or<buffer_view> view_slice(buffer& buff) const {
(void) buff;
return make_error<err::not_implemented>();
}
error_or<array_buffer> chain_slice(chain_array_buffer& buff) const {
(void) buff;
return make_error<err::not_implemented>();
}
};
}
|