BufferFlow.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #include <etk/types.hpp>
8 #include <enet/WebSocket.hpp>
9 #include <zeus/ParamType.hpp>
10 
11 namespace zeus {
12 
13  /*
14  class BufferFlow:
15  public Buffer {
16  friend class zeus::Buffer;
17  protected:
18  / **
19  * @brief basic constructor (hidden to force the use of ememory::SharedPtr) @ref zeus::BufferFlow::create
20  * /
21  BufferFlow() {
22  m_header.flags = ZEUS_BUFFER_FLAG_FINISH + uint8_t(zeus::Buffer::typeMessage::flow);
23  };
24  void composeWith(const uint8_t* _buffer, uint32_t _lenght) override;
25  public:
26  / **
27  * @brief Create a shared pointer on the BufferFlow
28  * @return Allocated Buffer.
29  * /
30  static ememory::SharedPtr<zeus::BufferFlow> create();
31  public:
32  enum zeus::Buffer::typeMessage getType() const override {
33  return zeus::Buffer::typeMessage::flow;
34  }
35 
36  };
37  */
38 }
Main zeus library namespace.
Definition: AbstractFunction.hpp:15