summaryrefslogtreecommitdiff
path: root/modules/codec/c++/transport.hpp
blob: 0bb70ebc94088abe04fad54f1697f84b8f05e918 (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
33
34
35
36
37
38
#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;

		buffer_view view{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>();
	}
};
}