|
| fixed_size_buffer_adaptor (char *data, std::size_t capacity) noexcept |
|
template<typename T > |
| fixed_size_buffer_adaptor (T &container) |
|
const char * | data () const noexcept |
| Returns a pointer to the data in the buffer.
|
|
char * | data () noexcept |
| Returns a pointer to the data in the buffer.
|
|
std::size_t | capacity () const noexcept |
| The capacity this buffer was created with.
|
|
std::size_t | size () const noexcept |
| The number of bytes used in the buffer. Always <= capacity().
|
|
char * | begin () noexcept |
| Return iterator to beginning of data.
|
|
const char * | begin () const noexcept |
| Return iterator to beginning of data.
|
|
const char * | cbegin () const noexcept |
| Return iterator to beginning of data.
|
|
char * | end () noexcept |
| Return iterator to end of data.
|
|
const char * | end () const noexcept |
| Return iterator to end of data.
|
|
const char * | cend () const noexcept |
| Return iterator to end of data.
|
|
This class can be used instead of std::string if you want to create a vector tile in a fixed-size buffer. Any operation that needs more space than is available will fail with a std::length_error exception.