|
| Buffer_sequence_view (Iterator_t begin_arg, Iterator_t end_arg, Size_t size_arg=uninitialized_size) |
| Construct a Buffer_sequence_view with buffers in the range given by the iterators. More...
|
|
| Buffer_sequence_view (Buffer_sequence_view &)=delete |
|
| Buffer_sequence_view (Buffer_sequence_view &&other) noexcept=default |
|
Buffer_sequence_view & | operator= (Buffer_sequence_view &)=delete |
|
Buffer_sequence_view & | operator= (Buffer_sequence_view &&) noexcept=default |
|
virtual | ~Buffer_sequence_view ()=default |
|
Iterator_t | begin () |
| Iterator to the first buffer. More...
|
|
Iterator_t | end () |
| Iterator to the last buffer. More...
|
|
Const_iterator_t | begin () const |
| Iterator to the first buffer. More...
|
|
Const_iterator_t | end () const |
| Iterator to the last buffer. More...
|
|
Const_iterator_t | cbegin () const |
| Const iterator pointing to the first buffer. More...
|
|
Const_iterator_t | cend () const |
| Const iterator pointing to the last buffer. More...
|
|
template<class Destination_char_t > |
void | copy (Destination_char_t *destination) const |
| Copy all data to the given, contiguous output buffer. More...
|
|
template<class Str_char_t = char, class Str_traits_t = std::char_traits<Str_char_t>, class Str_allocator_t = std::allocator<Str_char_t>> |
std::basic_string< Str_char_t, Str_traits_t, Str_allocator_t > | str (const Str_allocator_t &allocator=Str_allocator_t()) |
| Return a copy of all the data in this object, as a std::string object. More...
|
|
Size_t | size () const |
| Return the total size of all buffers. More...
|
|
std::string | debug_string (bool show_contents=false, int indent=0) const |
| In debug mode, return a string that describes the internal structure of this object, to use for debugging. More...
|
|
template<class Char_tp = unsigned char, template< class Element_tp, class Allocator_tp > class Container_tp = std::vector, bool const_tp = false>
class mysql::binlog::event::compression::buffer::Buffer_sequence_view< Char_tp, Container_tp, const_tp >
Sequence of memory buffers.
This is a minimal class with just a sequence of buffers. It does not have a read/write position (
- See also
- Rw_buffer_sequence). It does not have methods to grow the buffer sequence (
-
Managed_buffer_sequence).
- Template Parameters
-
Char_tp | The type of elements stored in the buffer: typically unsigned char. |
Container_tp | The type of container to hold the buffers. This defaults to std::vector, but std::list is also possible. |
const_tp | If true, use const iterators instead of non-const iterators to represent the beginning and end of the container. |
template<class Char_tp = unsigned char, template< class Element_tp, class Allocator_tp > class Container_tp = std::vector, bool const_tp = false>
template<class Destination_char_t >
Copy all data to the given, contiguous output buffer.
The caller is responsible for providing a buffer of at least size()
bytes.
- Parameters
-
destination | The target buffer. |
template<class Char_tp = unsigned char, template< class Element_tp, class Allocator_tp > class Container_tp = std::vector, bool const_tp = false>
template<class Str_char_t = char, class Str_traits_t = std::char_traits<Str_char_t>, class Str_allocator_t = std::allocator<Str_char_t>>
Return a copy of all the data in this object, as a std::string
object.