ObjectBase.hpp
Go to the documentation of this file.
constexpr FSTR_NOINLINE const size_t length() const
Get the length of the object data in bytes.
Definition: ObjectBase.hpp:38
size_t read(size_t offset, void *buffer, size_t count) const
Read contents of a String into RAM.
constexpr const bool isNull() const
Indicates an invalid String, used for return value from lookups, etc.
Definition: ObjectBase.hpp:110
constexpr const ObjectType & as() const
Cast to a different object type.
Definition: ObjectBase.hpp:66
bool operator==(const ObjectBase &other) const
static constexpr uint32_t copyBit
Set to indicate copy.
Definition: ObjectBase.hpp:122
constexpr const size_t size() const
Get the object data size in bytes.
Definition: ObjectBase.hpp:53
static constexpr uint32_t lengthInvalid
Indicates null string in a copy.
Definition: ObjectBase.hpp:123
size_t readFlash(size_t offset, void *buffer, size_t count) const
Read contents of a String into RAM, using flashread()
#define ALIGNUP4(n)
Align a size up to the nearest word boundary.
Definition: FakePgmSpace.h:39
Definition: Array.hpp:108
ObjectType
Definition: Libraries/jerryscript/src/include/Jerryscript/Types.h:34