|
jaulib v1.5.0
Jau Support Library (C++, Java, ..)
|
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_. | |
| constexpr lb_endian_t | byte_order () const noexcept |
| Returns byte order of this octet store. | |
| 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 499 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 515 of file octets.hpp.
|
inlineconstexprnoexcept |
Returns byte order of this octet store.
Definition at line 524 of file octets.hpp.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inline |
Definition at line 530 of file octets.hpp.
|
inlineconstexprnoexcept |
Definition at line 533 of file octets.hpp.
|
inline |
Definition at line 537 of file octets.hpp.
|
inlineconstexprnoexcept |
Definition at line 540 of file octets.hpp.
|
inline |
|
inlineconstexprnoexcept |
Definition at line 547 of file octets.hpp.
|
inlinenoexcept |
Definition at line 551 of file octets.hpp.