Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Transient endian aware octet data slice, i.e. More...
#include <octets.hpp>
Public Member Functions | |
TOctetSlice (const TOctets &buffer_, const nsize_t offset_, const nsize_t size_) | |
Creates a view of a given TOctet with the specified offset_ and size_. More... | |
constexpr lb_endian_t | byte_order () const noexcept |
Returns byte order of this octet store. More... | |
uint8_t const * | get_ptr (const nsize_t i) const |
constexpr uint8_t const * | get_ptr_nc (const nsize_t i) const noexcept |
uint16_t | get_uint16 (const nsize_t i) const |
constexpr uint16_t | get_uint16_nc (const nsize_t i) const noexcept |
uint8_t | get_uint8 (const nsize_t i) const |
constexpr uint8_t | get_uint8_nc (const nsize_t i) const noexcept |
constexpr nsize_t | offset () const noexcept |
constexpr const TOctets & | parent () const noexcept |
constexpr nsize_t | size () const noexcept |
std::string | toString () const noexcept |
Transient endian aware octet data slice, i.e.
a view of an TOctet.
Endian byte order is defined by its parent TOctet.
Definition at line 494 of file octets.hpp.
|
inline |
Creates a view of a given TOctet with the specified offset_ and size_.
buffer_ | the parent TOctet buffer |
offset_ | offset to the parent TOctet buffer |
size_ | size of this view, starting at offset_ |
IndexOutOfBoundsException | if offset_ + size_ > parent buffer_.size() |
Definition at line 510 of file octets.hpp.
|
inlineconstexprnoexcept |
Returns byte order of this octet store.
Definition at line 519 of file octets.hpp.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inline |
Definition at line 525 of file octets.hpp.
|
inlineconstexprnoexcept |
Definition at line 528 of file octets.hpp.
|
inline |
Definition at line 532 of file octets.hpp.
|
inlineconstexprnoexcept |
|
inline |
|
inlineconstexprnoexcept |
|
inlinenoexcept |