AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
Loading...
Searching...
No Matches
Public Member Functions | List of all members
painlessmesh::memory::StringBuffer Class Reference

#include <memory.hpp>

Public Member Functions

 StringBuffer (size_t initial_capacity=512)
 
void clear ()
 
void append (const TSTRING &str)
 
const TSTRING & str () const
 
TSTRING & str ()
 
size_t capacity () const
 
size_t size () const
 

Detailed Description

Pre-sized string buffer to avoid frequent reallocations

Constructor & Destructor Documentation

◆ StringBuffer()

painlessmesh::memory::StringBuffer::StringBuffer ( size_t  initial_capacity = 512)
inlineexplicit

Member Function Documentation

◆ append()

void painlessmesh::memory::StringBuffer::append ( const TSTRING &  str)
inline

◆ capacity()

size_t painlessmesh::memory::StringBuffer::capacity ( ) const
inline

◆ clear()

void painlessmesh::memory::StringBuffer::clear ( )
inline

◆ size()

size_t painlessmesh::memory::StringBuffer::size ( ) const
inline

◆ str() [1/2]

TSTRING & painlessmesh::memory::StringBuffer::str ( )
inline

◆ str() [2/2]

const TSTRING & painlessmesh::memory::StringBuffer::str ( ) const
inline

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