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

type suitable to store the location and size of a chunk of memory that can be used to receive from the radio More...

#include <bluetoe/link_layer/include/bluetoe/buffer.hpp>

Public Member Functions

bool empty () const
 returns true, if the buffer is empty
 
void fill (std::initializer_list< std::uint8_t > data)
 copies the given data into the buffer
 

Public Attributes

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 receive from the radio

Member Function Documentation

◆ fill()

void bluetoe::link_layer::read_buffer::fill ( std::initializer_list< std::uint8_t >  data)
inline

copies the given data into the buffer

Precondition
data.size() <= size

Member Data Documentation

◆ buffer

std::uint8_t* bluetoe::link_layer::read_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::read_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: