ConfigDB::CountedString Struct Reference

Used by StringPool. More...

#include <Pool.h>

Collaboration diagram for ConfigDB::CountedString:

Public Member Functions

 CountedString ()=default
 
 CountedString (const char *value, uint16_t length)
 
 CountedString (const String &s)
 
bool operator== (const CountedString &other) const
 
 operator bool () const
 
 operator String () const
 
uint16_t getStorageSize () const
 Get buffer size required to store this string. More...
 

Public Attributes

const char * value {}
 
uint16_t length {}
 

Detailed Description

Used by StringPool.

Constructor & Destructor Documentation

◆ CountedString() [1/3]

ConfigDB::CountedString::CountedString ( )
default

◆ CountedString() [2/3]

ConfigDB::CountedString::CountedString ( const char *  value,
uint16_t  length 
)
inline

◆ CountedString() [3/3]

ConfigDB::CountedString::CountedString ( const String s)
inlineexplicit

Member Function Documentation

◆ getStorageSize()

uint16_t ConfigDB::CountedString::getStorageSize ( ) const
inline

Get buffer size required to store this string.

◆ operator bool()

ConfigDB::CountedString::operator bool ( ) const
inlineexplicit

◆ operator String()

ConfigDB::CountedString::operator String ( ) const
inlineexplicit

◆ operator==()

bool ConfigDB::CountedString::operator== ( const CountedString other) const
inline

Member Data Documentation

◆ length

uint16_t ConfigDB::CountedString::length {}

◆ value

const char* ConfigDB::CountedString::value {}

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