Object.hpp
Go to the documentation of this file.
68 static_assert(std::is_standard_layout<decltype(name)>::value, "FSTR structure not Standard Layout"); \
69 static_assert(offsetof(decltype(name), data) == sizeof(uint32_t), "FSTR structure alignment error");
size_t read(size_t offset, void *buffer, size_t count) const
Read contents of a String into RAM.
constexpr const ObjectType & as() const
Cast to a different object type.
Definition: ObjectBase.hpp:60
constexpr size_t length() const
Get the length of the object data in bytes.
Definition: ObjectBase.hpp:38
size_t readFlash(size_t offset, void *buffer, size_t count) const
Read contents of a String into RAM, using flashread()
Definition: ObjectIterator.hpp:29
size_t readFlash(size_t index, ElementType *buffer, size_t count) const
Read content into RAM,using flashmem_read()
Definition: Object.hpp:195
size_t read(size_t index, ElementType *buffer, size_t count) const
Read content into RAM.
Definition: Object.hpp:181
Object & operator=(const Object &&)=delete
ElementType operator[](unsigned index) const
Array operator[].
Definition: Object.hpp:159
Object(const Object &&)=delete
constexpr size_t length() const
Get the length of the content in elements.
Definition: Object.hpp:132
ElementType unsafeValueAt(const DataPtrType dataptr, unsigned index) const
Definition: Object.hpp:202
Object(const Object &)=delete
static constexpr const ObjectType & empty()
Return an empty object which evaluates to null.
Definition: Object.hpp:124
Object & operator=(const Object &)=delete
Definition: Array.hpp:118
std::enable_if< sizeof(T)==1, T >::type readValue(const T *ptr)
Read a typed value from flash memory ensuring correct alignment of access.
Definition: Utility.hpp:134
ObjectType
Definition: Libraries/jerryscript/src/include/Jerryscript/Types.h:34
1.9.1