FSTR::Array< ElementType > Class Template Reference
Class to access an array of integral values stored in flash. More...
#include <Array.hpp>
Inheritance diagram for FSTR::Array< ElementType >:
Collaboration diagram for FSTR::Array< ElementType >:
Public Member Functions | |
ArrayPrinter< Array > | printer () const |
Returns a printer object for this array. More... | |
size_t | printTo (Print &p) const |
![]() | |
Object () | |
Creates a null object. More... | |
Object (const Object &obj) | |
Copy constructor. More... | |
Iterator | begin () const |
Iterator | end () const |
size_t | length () const |
Get the length of the content in elements. More... | |
int | indexOf (const ValueType &value) const |
ElementType | valueAt (unsigned index) const |
ElementType | operator[] (unsigned index) const |
Array operator[]. More... | |
size_t | elementSize () const |
const ElementType * | data () const |
size_t | read (size_t index, ElementType *buffer, size_t count) const |
Read content into RAM. More... | |
size_t | readFlash (size_t index, ElementType *buffer, size_t count) const |
Read content into RAM,using flashmem_read() More... | |
![]() | |
size_t | length () const |
Get the length of the object data in bytes. More... | |
size_t | size () const |
Get the object data size in bytes. More... | |
template<class ObjectType > | |
constexpr const ObjectType & | as () const |
Cast to a different object type. More... | |
const uint8_t * | data () const |
Get a pointer to the flash data. More... | |
size_t | read (size_t offset, void *buffer, size_t count) const |
Read contents of a String into RAM. More... | |
size_t | readFlash (size_t offset, void *buffer, size_t count) const |
Read contents of a String into RAM, using flashread() More... | |
bool | isCopy () const |
bool | isNull () const |
Indicates an invalid String, used for return value from lookups, etc. More... | |
Additional Inherited Members | |
![]() | |
using | Iterator = ObjectIterator< Array< ElementType >, ElementType > |
![]() | |
static const Array< ElementType > & | empty () |
Return an empty object which evaluates to null. More... | |
![]() | |
uint32_t | flashLength_ |
![]() | |
void | invalidate () |
void | copy (const ObjectBase &obj) |
![]() | |
static const ObjectBase | empty_ |
Detailed Description
template<typename ElementType>
class FSTR::Array< ElementType >
Class to access an array of integral values stored in flash.
- Template Parameters
-
ElementType
Member Function Documentation
◆ printer()
template<typename ElementType >
|
inline |
Returns a printer object for this array.
- Note
- ElementType must be supported by Print
◆ printTo()
template<typename ElementType >
|
inline |
The documentation for this class was generated from the following file: