38 static SharedBuffer make(
const size_t numBytes,
const long nodeAffinity = -1);
53 static SharedBuffer makeCirc(
const size_t numBytes,
const long nodeAffinity = -1);
61 SharedBuffer(
const size_t address,
const size_t length, std::shared_ptr<void> container);
74 size_t getAddress(
void)
const;
77 size_t getLength(
void)
const;
83 size_t getAlias(
void)
const;
90 size_t getEnd(
void)
const;
96 bool unique(
void)
const;
101 size_t useCount(
void)
const;
111 const std::shared_ptr<void> &getContainer(
void)
const;
114 static SharedBuffer makeCircUnprotected(
const size_t numBytes,
const long nodeAffinity);
118 std::shared_ptr<void> _container;
146 return _address + _length;
151 return _container.unique();
156 return _container.use_count();
159 inline Pothos::SharedBuffer::operator bool(
void)
const
161 return bool(_container);
#define pothos_explicit
Definition: Config.hpp:85
#define POTHOS_API
Definition: Config.hpp:41
size_t useCount(void) const
Definition: SharedBuffer.hpp:154
POTHOS_API bool operator==(const Callable &lhs, const Callable &rhs)
size_t getLength(void) const
Get the length of the buffer in bytes.
Definition: SharedBuffer.hpp:134
size_t getAddress(void) const
Get the address of the first byte of the buffer.
Definition: SharedBuffer.hpp:129
size_t getAlias(void) const
Definition: SharedBuffer.hpp:139
Definition: SharedBuffer.hpp:21
const std::shared_ptr< void > & getContainer(void) const
Definition: SharedBuffer.hpp:164
size_t getEnd(void) const
Definition: SharedBuffer.hpp:144
bool unique(void) const
Definition: SharedBuffer.hpp:149