41 static SharedBuffer make(
const size_t numBytes,
const long nodeAffinity = -1);
56 static SharedBuffer makeCirc(
const size_t numBytes,
const long nodeAffinity = -1);
64 SharedBuffer(
const size_t address,
const size_t length, std::shared_ptr<void> container);
77 size_t getAddress(
void)
const;
80 size_t getLength(
void)
const;
86 size_t getAlias(
void)
const;
93 size_t getEnd(
void)
const;
99 bool unique(
void)
const;
104 size_t useCount(
void)
const;
109 explicit operator bool(
void)
const;
114 const std::shared_ptr<void> &getContainer(
void)
const;
117 static SharedBuffer makeCircUnprotected(
const size_t numBytes,
const long nodeAffinity);
121 std::shared_ptr<void> _container;
149 return _address + _length;
154 return _container.unique();
159 return _container.use_count();
162 inline Pothos::SharedBuffer::operator bool(
void)
const 164 return bool(_container);
#define POTHOS_API
Definition: Config.hpp:41
size_t getAlias(void) const
Definition: SharedBuffer.hpp:142
POTHOS_API bool operator==(const Callable &lhs, const Callable &rhs)
Definition: ArchiveEntry.hpp:20
size_t getAddress(void) const
Get the address of the first byte of the buffer.
Definition: SharedBuffer.hpp:132
const std::shared_ptr< void > & getContainer(void) const
Definition: SharedBuffer.hpp:167
size_t getLength(void) const
Get the length of the buffer in bytes.
Definition: SharedBuffer.hpp:137
Definition: SharedBuffer.hpp:21
size_t getEnd(void) const
Definition: SharedBuffer.hpp:147
bool unique(void) const
Definition: SharedBuffer.hpp:152
size_t useCount(void) const
Definition: SharedBuffer.hpp:157