BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
bluetoe::link_layer::write_buffer Struct Reference

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
 

Detailed Description

type suitable to store the location and size of a chunk of memory that can be used to transmit to the radio

Member Data Documentation

◆ buffer

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.

◆ size

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


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