/workspaces/astro/sol3-sdk/cpp/sol3/core/stream_writer.h Source File

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/core/stream_writer.h Source File
Space-ng SDK
stream_writer.h
Go to the documentation of this file.
1 // Copyright (c) Space-ng, inc. All rights reserved.
2 #pragma once
3 
4 #include <cstddef>
5 
6 namespace sol3::core {
7 
9 class IStreamWriter {
10  public:
11  virtual ~IStreamWriter() = default;
12 
14  virtual void write(char const* data, size_t size) = 0;
15 };
16 
17 } // namespace sol3::core
Minimal append-only byte sink for streaming writes.
Definition: stream_writer.h:9
virtual ~IStreamWriter()=default
virtual void write(char const *data, size_t size)=0
Append bytes to the current write position.
Definition: any_message_input.h:15