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