eckit::SharedBuffer class

Constructors, destructors, conversion operators

SharedBuffer(size_t size)
SharedBuffer(CountedBuffer* b)
~SharedBuffer()
SharedBuffer(const SharedBuffer& s)
operator const Buffer&() const
operator Buffer&()

Public functions

auto operator=(const SharedBuffer& s) -> SharedBuffer&
auto operator->() const -> CountedBuffer*
auto data() -> void*
auto size() const -> size_t
auto str() const -> std::string

Friends

auto operator<<(std::ostream& s, const SharedBuffer& o) -> std::ostream&

Function documentation

std::string eckit::SharedBuffer::str() const

Careful, use str() to convert the contents of a buffer to a string and don't rely on the contents to be null terminated This copies the data

This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.