StormByte C++ Library: Buffer module 0.0.9999
StormByte-Buffer is a StormByte library module for handling buffers
Loading...
Searching...
No Matches
typedefs.hxx
1#pragma once
2
3#include <StormByte/buffer/exception.hxx>
4#include <StormByte/logger/log.hxx>
5#include <StormByte/expected.hxx>
6
7#include <cstddef>
8#include <functional>
9#include <memory>
10#include <span>
11#include <vector>
12
21namespace StormByte::Buffer {
22 class Consumer;
23 class Producer;
24 class ReadOnly;
25 class WriteOnly;
26
34 enum class STORMBYTE_BUFFER_PUBLIC Position {
41 Absolute,
42
49 Relative
50 };
51
59 using DataType = std::vector<std::byte>;
60
70 using PipeFunction = std::function<void(Consumer, Producer, std::shared_ptr<Logger::Log>)>;
71
86 enum class STORMBYTE_BUFFER_PUBLIC ExecutionMode {
87 Sync,
88 Async
89 };
90}