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

#include <buffer_mutable.hpp>

Public Member Functions

 mutable_buffer () noexcept=default
 Construct an empty buffer.
 
 mutable_buffer (void *data, etl::size_t size)
 Construct a buffer to represent a given memory range.
 
auto data () const noexcept -> void *
 Get a pointer to the beginning of the memory range.
 
auto operator+= (etl::size_t n) noexcept -> mutable_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+ (etl::size_t const n, mutable_buffer const &b) noexcept -> mutable_buffer
 Create a new modifiable buffer that is offset from the start of another.
 
auto operator+ (mutable_buffer const &b, etl::size_t const n) noexcept -> mutable_buffer
 Create a new modifiable buffer that is offset from the start of another.
 

Constructor & Destructor Documentation

◆ mutable_buffer() [1/2]

mutable_buffer ( )
defaultnoexcept

Construct an empty buffer.

◆ mutable_buffer() [2/2]

mutable_buffer ( void * data,
etl::size_t size )
inline

Construct a buffer to represent a given memory range.

Member Function Documentation

◆ data()

auto data ( ) const -> void*
inlinenodiscardnoexcept

Get a pointer to the beginning of the memory range.

◆ operator+=()

auto operator+= ( etl::size_t n) -> mutable_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+ ( etl::size_t const n,
mutable_buffer const & b ) -> mutable_buffer
related

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

◆ operator+() [2/2]

auto operator+ ( mutable_buffer const & b,
etl::size_t const n ) -> mutable_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: