60 typedef std::shared_ptr<BufferManager>
Sptr;
74 static Sptr make(
const std::string &name);
96 virtual bool empty(
void)
const = 0;
120 virtual void pop(
const size_t numBytes) = 0;
141 void setCallback(
const std::function<
void(
const ManagedBuffer &)> &callback);
144 bool isInitialized(
void)
const;
156 std::function<void(const ManagedBuffer &)> _callback;
173 if (_callback) _callback(buff);
174 else this->push(buff);
size_t numBuffers
Definition: BufferManager.hpp:35
#define POTHOS_API
Definition: Config.hpp:41
void pushExternal(const ManagedBuffer &buff)
Definition: BufferManager.hpp:171
long nodeAffinity
Definition: BufferManager.hpp:48
Definition: ArchiveEntry.hpp:20
Definition: BufferManager.hpp:56
Definition: ManagedBuffer.hpp:31
void setFrontBuffer(const BufferChunk &buff)
Called by derived classes to set the buffer for front()
Definition: BufferManager.hpp:166
bool isInitialized(void) const
Has this buffer manager been initialized?
Definition: BufferManager.hpp:177
Definition: BufferManager.hpp:24
std::shared_ptr< BufferManager > Sptr
Definition: BufferManager.hpp:60
POTHOS_API void init(void)
size_t bufferSize
Definition: BufferManager.hpp:41
Definition: BufferChunk.hpp:30
const BufferChunk & front(void) const
Definition: BufferManager.hpp:161