Pothos  0.4.0-gd11861cd
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
BufferPool.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 #include <Pothos/Config.hpp>
14 #include <vector>
15 
16 namespace Pothos {
17 
25 {
26 public:
27 
29  BufferPool(void);
30 
34  void clear(void);
35 
41  const Pothos::BufferChunk &get(const size_t numBytes);
42 
43 private:
44  size_t _minBuffSize;
45  std::vector<Pothos::BufferChunk> _buffs;
46 };
47 
48 } //namespace Pothos
#define POTHOS_API
Definition: Config.hpp:41
Definition: BufferPool.hpp:24
Definition: BufferChunk.hpp:30