tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
const_buffer Struct Reference

#include <buffer_const.hpp>

Public Member Functions

 const_buffer () noexcept=default
 Construct an empty buffer.
 
 const_buffer (void const *data, etl::size_t size)
 Construct a buffer to represent a given memory range.
 
auto data () const noexcept -> void const *
 Get a pointer to the beginning of the memory range.
 
auto operator+= (etl::size_t n) noexcept -> const_buffer &
 Move the start of the buffer by the specified number of bytes.
 
auto size () const noexcept -> etl::size_t
 Get the size of the memory range.
 

Related Symbols

(Note that these are not member symbols.)

auto operator+ (const_buffer const &b, etl::size_t const n) noexcept -> const_buffer
 Create a new modifiable buffer that is offset from the start of another.
 
auto operator+ (etl::size_t const n, const_buffer const &b) noexcept -> const_buffer
 Create a new modifiable buffer that is offset from the start of another.
 

Constructor & Destructor Documentation

◆ const_buffer() [1/2]

const_buffer ( )
defaultnoexcept

Construct an empty buffer.

◆ const_buffer() [2/2]

const_buffer ( void const * data,
etl::size_t size )
inline

Construct a buffer to represent a given memory range.

Member Function Documentation

◆ data()

auto data ( ) const -> void const*
inlinenodiscardnoexcept

Get a pointer to the beginning of the memory range.

◆ operator+=()

auto operator+= ( etl::size_t n) -> const_buffer&
inlinenoexcept

Move the start of the buffer by the specified number of bytes.

◆ size()

auto size ( ) const -> etl::size_t
inlinenodiscardnoexcept

Get the size of the memory range.

Friends And Related Symbol Documentation

◆ operator+() [1/2]

auto operator+ ( const_buffer const & b,
etl::size_t const n ) -> const_buffer
related

Create a new modifiable buffer that is offset from the start of another.

◆ operator+() [2/2]

auto operator+ ( etl::size_t const n,
const_buffer const & b ) -> const_buffer
related

Create a new modifiable buffer that is offset from the start of another.


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