Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | List of all members
direct_bt::TOctets Class Reference

Transient octet data, i.e. More...

#include <OctetTypes.hpp>

Inheritance diagram for direct_bt::TOctets:
Collaboration diagram for direct_bt::TOctets:

Public Member Functions

 TOctets (uint8_t *source, const jau::nsize_t len)
 Transient passthrough r/w memory, w/o ownership . More...
 
 TOctets (const TOctets &o) noexcept=default
 
 TOctets (TOctets &&o) noexcept=default
 
TOctetsoperator= (const TOctets &o) noexcept=default
 
TOctetsoperator= (TOctets &&o) noexcept=default
 
virtual ~TOctets () noexcept override
 
void put_int8 (const jau::nsize_t i, const int8_t v)
 
constexpr void put_int8_nc (const jau::nsize_t i, const int8_t v) noexcept
 
void put_uint8 (const jau::nsize_t i, const uint8_t v)
 
constexpr void put_uint8_nc (const jau::nsize_t i, const uint8_t v) noexcept
 
void put_uint16 (const jau::nsize_t i, const uint16_t v)
 
constexpr void put_uint16_nc (const jau::nsize_t i, const uint16_t v) noexcept
 
void put_uint32 (const jau::nsize_t i, const uint32_t v)
 
constexpr void put_uint32_nc (const jau::nsize_t i, const uint32_t v) noexcept
 
void put_eui48 (const jau::nsize_t i, const EUI48 &v)
 
void put_eui48_nc (const jau::nsize_t i, const EUI48 &v) noexcept
 
void put_uint64 (const jau::nsize_t i, const uint64_t &v)
 
constexpr void put_uint64_nc (const jau::nsize_t i, const uint64_t &v) noexcept
 
void put_uint128 (const jau::nsize_t i, const jau::uint128_t &v)
 
constexpr void put_uint128_nc (const jau::nsize_t i, const jau::uint128_t &v) noexcept
 
void put_uint192 (const jau::nsize_t i, const jau::uint192_t &v)
 
constexpr void put_uint192_nc (const jau::nsize_t i, const jau::uint192_t &v) noexcept
 
void put_uint256 (const jau::nsize_t i, const jau::uint256_t &v)
 
constexpr void put_uint256_nc (const jau::nsize_t i, const jau::uint256_t &v) noexcept
 
void put_octets (const jau::nsize_t i, const TROOctets &v)
 
void put_octets_nc (const jau::nsize_t i, const TROOctets &v) noexcept
 
void put_bytes (const jau::nsize_t i, const uint8_t *source, const jau::nsize_t byte_count)
 
void put_bytes_nc (const jau::nsize_t i, const uint8_t *source, const jau::nsize_t byte_count) noexcept
 
void put_string (const jau::nsize_t i, const std::string &v, const jau::nsize_t max_len, const bool includeEOS)
 
void put_string_nc (const jau::nsize_t i, const std::string &v, const jau::nsize_t max_len, const bool includeEOS) noexcept
 
void put_uuid (const jau::nsize_t i, const uuid_t &v)
 
void put_uuid_nc (const jau::nsize_t i, const uuid_t &v) noexcept
 
uint8_t * get_wptr () noexcept
 
uint8_t * get_wptr (const jau::nsize_t i)
 
uint8_t * get_wptr_nc (const jau::nsize_t i) noexcept
 
std::string toString () const noexcept
 
- Public Member Functions inherited from direct_bt::TROOctets
 TROOctets (const uint8_t *source, const jau::nsize_t len)
 Transient passthrough read-only memory, w/o ownership . More...
 
 TROOctets (const TROOctets &o) noexcept=default
 
 TROOctets (TROOctets &&o) noexcept=default
 
TROOctetsoperator= (const TROOctets &o) noexcept=default
 
TROOctetsoperator= (TROOctets &&o) noexcept=default
 
virtual ~TROOctets () noexcept
 
void check_range (const jau::nsize_t i, const jau::nsize_t count, const char *file, int line) const
 
constexpr bool is_range_valid (const jau::nsize_t i, const jau::nsize_t count) const noexcept
 
constexpr jau::nsize_t getSize () const noexcept
 Returns the used memory size for read and write operations, may be zero. More...
 
uint8_t get_uint8 (const jau::nsize_t i) const
 
constexpr uint8_t get_uint8_nc (const jau::nsize_t i) const noexcept
 
int8_t get_int8 (const jau::nsize_t i) const
 
constexpr int8_t get_int8_nc (const jau::nsize_t i) const noexcept
 
uint16_t get_uint16 (const jau::nsize_t i) const
 
constexpr uint16_t get_uint16_nc (const jau::nsize_t i) const noexcept
 
uint32_t get_uint32 (const jau::nsize_t i) const
 
constexpr uint32_t get_uint32_nc (const jau::nsize_t i) const noexcept
 
EUI48 get_eui48 (const jau::nsize_t i) const
 
EUI48 get_eui48_nc (const jau::nsize_t i) const noexcept
 
uint64_t get_uint64 (const jau::nsize_t i) const
 
constexpr uint64_t get_uint64_nc (const jau::nsize_t i) const noexcept
 
jau::uint128_t get_uint128 (const jau::nsize_t i) const
 
constexpr jau::uint128_t get_uint128_nc (const jau::nsize_t i) const noexcept
 
jau::uint192_t get_uint192 (const jau::nsize_t i) const
 
constexpr jau::uint192_t get_uint192_nc (const jau::nsize_t i) const noexcept
 
jau::uint256_t get_uint256 (const jau::nsize_t i) const
 
constexpr jau::uint256_t get_uint256_nc (const jau::nsize_t i) const noexcept
 
std::string get_string (const jau::nsize_t i) const
 Assumes a null terminated string. More...
 
constexpr_cxx20 std::string get_string_nc (const jau::nsize_t i) const noexcept
 Assumes a null terminated string. More...
 
std::string get_string (const jau::nsize_t i, const jau::nsize_t length) const
 Assumes a string with defined length, not necessarily null terminated. More...
 
uuid16_t get_uuid16 (const jau::nsize_t i) const
 
uuid16_t get_uuid16_nc (const jau::nsize_t i) const noexcept
 
uuid128_t get_uuid128 (const jau::nsize_t i) const
 
uuid128_t get_uuid128_nc (const jau::nsize_t i) const noexcept
 
std::unique_ptr< const uuid_tget_uuid (const jau::nsize_t i, const uuid_t::TypeSize tsize) const
 
constexpr uint8_t const * get_ptr () const noexcept
 
uint8_t const * get_ptr (const jau::nsize_t i) const
 
constexpr uint8_t const * get_ptr_nc (const jau::nsize_t i) const noexcept
 
bool operator== (const TROOctets &rhs) const noexcept
 
bool operator!= (const TROOctets &rhs) const noexcept
 
std::string toString () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from direct_bt::TROOctets
constexpr uint8_t * data () noexcept
 
void setData (uint8_t *d, jau::nsize_t s)
 
constexpr void setSize (jau::nsize_t s) noexcept
 
- Static Protected Member Functions inherited from direct_bt::TROOctets
static void checkPtr (uint8_t *d, jau::nsize_t s)
 

Detailed Description

Transient octet data, i.e.

non persistent passthrough, owned by caller.

Either ATT value (Vol 3, Part F 3.2.4) or PDU data.

Definition at line 255 of file OctetTypes.hpp.

Constructor & Destructor Documentation

◆ TOctets() [1/3]

direct_bt::TOctets::TOctets ( uint8_t *  source,
const jau::nsize_t  len 
)
inline

Transient passthrough r/w memory, w/o ownership .

Definition at line 259 of file OctetTypes.hpp.

◆ TOctets() [2/3]

direct_bt::TOctets::TOctets ( const TOctets o)
defaultnoexcept

◆ TOctets() [3/3]

direct_bt::TOctets::TOctets ( TOctets &&  o)
defaultnoexcept

◆ ~TOctets()

virtual direct_bt::TOctets::~TOctets ( )
inlineoverridevirtualnoexcept

Definition at line 267 of file OctetTypes.hpp.

Member Function Documentation

◆ get_wptr() [1/2]

uint8_t* direct_bt::TOctets::get_wptr ( )
inlinenoexcept

Definition at line 383 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_wptr() [2/2]

uint8_t* direct_bt::TOctets::get_wptr ( const jau::nsize_t  i)
inline

Definition at line 385 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ get_wptr_nc()

uint8_t* direct_bt::TOctets::get_wptr_nc ( const jau::nsize_t  i)
inlinenoexcept

Definition at line 389 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

TOctets& direct_bt::TOctets::operator= ( const TOctets o)
defaultnoexcept

◆ operator=() [2/2]

TOctets& direct_bt::TOctets::operator= ( TOctets &&  o)
defaultnoexcept

◆ put_bytes()

void direct_bt::TOctets::put_bytes ( const jau::nsize_t  i,
const uint8_t *  source,
const jau::nsize_t  byte_count 
)
inline

Definition at line 349 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_bytes_nc()

void direct_bt::TOctets::put_bytes_nc ( const jau::nsize_t  i,
const uint8_t *  source,
const jau::nsize_t  byte_count 
)
inlinenoexcept

Definition at line 353 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_eui48()

void direct_bt::TOctets::put_eui48 ( const jau::nsize_t  i,
const EUI48 v 
)
inline

Definition at line 301 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_eui48_nc()

void direct_bt::TOctets::put_eui48_nc ( const jau::nsize_t  i,
const EUI48 v 
)
inlinenoexcept

Definition at line 305 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_int8()

void direct_bt::TOctets::put_int8 ( const jau::nsize_t  i,
const int8_t  v 
)
inline

Definition at line 269 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_int8_nc()

constexpr void direct_bt::TOctets::put_int8_nc ( const jau::nsize_t  i,
const int8_t  v 
)
inlineconstexprnoexcept

Definition at line 273 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_octets()

void direct_bt::TOctets::put_octets ( const jau::nsize_t  i,
const TROOctets v 
)
inline

Definition at line 341 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_octets_nc()

void direct_bt::TOctets::put_octets_nc ( const jau::nsize_t  i,
const TROOctets v 
)
inlinenoexcept

Definition at line 345 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_string()

void direct_bt::TOctets::put_string ( const jau::nsize_t  i,
const std::string &  v,
const jau::nsize_t  max_len,
const bool  includeEOS 
)
inline

Definition at line 357 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_string_nc()

void direct_bt::TOctets::put_string_nc ( const jau::nsize_t  i,
const std::string &  v,
const jau::nsize_t  max_len,
const bool  includeEOS 
)
inlinenoexcept

Definition at line 366 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_uint128()

void direct_bt::TOctets::put_uint128 ( const jau::nsize_t  i,
const jau::uint128_t v 
)
inline

Definition at line 317 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint128_nc()

constexpr void direct_bt::TOctets::put_uint128_nc ( const jau::nsize_t  i,
const jau::uint128_t v 
)
inlineconstexprnoexcept

Definition at line 321 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint16()

void direct_bt::TOctets::put_uint16 ( const jau::nsize_t  i,
const uint16_t  v 
)
inline

Definition at line 285 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint16_nc()

constexpr void direct_bt::TOctets::put_uint16_nc ( const jau::nsize_t  i,
const uint16_t  v 
)
inlineconstexprnoexcept

Definition at line 289 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_uint192()

void direct_bt::TOctets::put_uint192 ( const jau::nsize_t  i,
const jau::uint192_t v 
)
inline

Definition at line 325 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint192_nc()

constexpr void direct_bt::TOctets::put_uint192_nc ( const jau::nsize_t  i,
const jau::uint192_t v 
)
inlineconstexprnoexcept

Definition at line 329 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint256()

void direct_bt::TOctets::put_uint256 ( const jau::nsize_t  i,
const jau::uint256_t v 
)
inline

Definition at line 333 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint256_nc()

constexpr void direct_bt::TOctets::put_uint256_nc ( const jau::nsize_t  i,
const jau::uint256_t v 
)
inlineconstexprnoexcept

Definition at line 337 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint32()

void direct_bt::TOctets::put_uint32 ( const jau::nsize_t  i,
const uint32_t  v 
)
inline

Definition at line 293 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint32_nc()

constexpr void direct_bt::TOctets::put_uint32_nc ( const jau::nsize_t  i,
const uint32_t  v 
)
inlineconstexprnoexcept

Definition at line 297 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_uint64()

void direct_bt::TOctets::put_uint64 ( const jau::nsize_t  i,
const uint64_t &  v 
)
inline

Definition at line 309 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint64_nc()

constexpr void direct_bt::TOctets::put_uint64_nc ( const jau::nsize_t  i,
const uint64_t &  v 
)
inlineconstexprnoexcept

Definition at line 313 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_uint8()

void direct_bt::TOctets::put_uint8 ( const jau::nsize_t  i,
const uint8_t  v 
)
inline

Definition at line 277 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uint8_nc()

constexpr void direct_bt::TOctets::put_uint8_nc ( const jau::nsize_t  i,
const uint8_t  v 
)
inlineconstexprnoexcept

Definition at line 281 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ put_uuid()

void direct_bt::TOctets::put_uuid ( const jau::nsize_t  i,
const uuid_t v 
)
inline

Definition at line 375 of file OctetTypes.hpp.

Here is the call graph for this function:

◆ put_uuid_nc()

void direct_bt::TOctets::put_uuid_nc ( const jau::nsize_t  i,
const uuid_t v 
)
inlinenoexcept

Definition at line 379 of file OctetTypes.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

std::string direct_bt::TOctets::toString ( ) const
inlinenoexcept

Definition at line 393 of file OctetTypes.hpp.

Here is the call graph for this function:

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