3 #include <boost/memory/memory_block.hpp> 9 namespace boost {
namespace memory {
26 template <
typename po
inter_type>
34 template <
typename po
inter_type>
35 buffer_ref(
const pointer_type* data,
size_t length);
44 template <
typename po
inter_type>
64 template <
typename reference_type>
72 template <
typename po
inter_type>
85 buffer_ref
subbuf(
size_t length)
const;
94 #include "buffer_ref.ipp" size_t length() const
Number of bytes in the buffer.
reference_type as()
Obtains a reference to the underlying memory block treating it as the given reference_type.
A non-owning reference to a buffer.
pointer_type as_pointer()
Obtains a reference to the underlying memory block treating it as a representation of the given point...
buffer_ref subbuf(size_t length) const
Obtains a sub buffer with the given size.
buffer_ref(pointer_type *data, size_t length)
Creates a reference through a pointer and length.
Represents an allocated memory block.