ANNA Suite  2020b
Multipurpose development suite for Telco applications
Buffer.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_comm_Buffer_hpp
10 #define anna_comm_Buffer_hpp
11 
12 #include <anna/core/DataBlock.hpp>
13 
14 namespace anna {
15 
16 namespace comm {
17 
22 class Buffer : public DataBlock {
23 public:
27  Buffer() : DataBlock(false) {;}
28 
34  void setup(const char* buffer, const int size) {
35  setBuffer(buffer);
36  setSize(size);
37  }
38 
43  void resize(const int size) { setSize(size); }
44 };
45 
46 }
47 }
48 
49 #endif
void resize(const int size)
Definition: Buffer.hpp:43
void setBuffer(const char *buffer)
Definition: DataBlock.hpp:277
Definition: Buffer.hpp:22
void setSize(const int size) noexcept(false)
Definition: app.hpp:12
void setup(const char *buffer, const int size)
Definition: Buffer.hpp:34
Definition: DataBlock.hpp:24
Buffer()
Definition: Buffer.hpp:27