BlueToe
an alternative GATT/BLE implementation
|
type suitable to store the location and size of a chunk of memory that can be used to transmit to the radio More...
#include <bluetoe/link_layer/include/bluetoe/buffer.hpp>
Public Member Functions | |
bool | empty () const |
returns true, if the buffer is empty | |
write_buffer (const read_buffer &rhs) | |
constructs a ready-only buffer from a writable buffer | |
write_buffer () | |
constructs an empty buffer | |
write_buffer (const std::uint8_t *b, std::size_t s) | |
constructs a buffer pointing to the given location, with the given size | |
Public Attributes | |
const std::uint8_t * | buffer |
std::size_t | size |
type suitable to store the location and size of a chunk of memory that can be used to transmit to the radio
const std::uint8_t* bluetoe::link_layer::write_buffer::buffer |
Points to the location where content of the buffer is located. If size is 0, the value is unspecified. The allignment of the address is unspecified.
std::size_t bluetoe::link_layer::write_buffer::size |
Size of the chunk. If size is 0, an empty buffer is indicated and the value of buffer is unspecified