/workspaces/astro/sol3-sdk/cpp/sol3/net/null_framer.h Source File

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/net/null_framer.h Source File
Space-ng SDK
null_framer.h
Go to the documentation of this file.
1 // Copyright (c) Space-ng, inc. All rights reserved.
2 #pragma once
3 
4 #include "sol3/net/framer.h"
5 
6 #include <memory>
7 
8 namespace sol3::net {
9 
10 // A no-op framer.
11 // The read path reads in chunks of `read_length`.
12 // The write path copies a payload verbatim with no framing.
13 std::unique_ptr<IFramer> makeNullFramer(size_t read_length);
14 
15 } // namespace sol3::net
Definition: buffer_pool.h:12
std::unique_ptr< IFramer > makeNullFramer(size_t read_length)