MySQL Connector/C++ 9.1.0
MySQL connector library for C and C++ applications
List of all members
bytes Class Reference

Class representing a region of memory holding raw bytes. More...

Detailed Description

Class representing a region of memory holding raw bytes.

Method begin() returns pointer to the first byte in the region, end() to one past the last byte in the region.

Note
An instance of bytes does not store the bytes - it merely describes a region of memory and is equivalent to a pair of pointers. It is very cheap to copy bytes and pass them by value.
This class extends std::pair<byte *, size_t> to make it consistent with how memory regions are described by std::get_temporary_buffer(). It is also possible to initialize a bytes instance by buffer returned from std::get_temporary_buffer(), as follows:

bytes buf = std::get_temporary_buffer<byte>(size);


The documentation for this class was generated from the following file: