Represent the well known type text.
Text(const Text &to_copy)
Copy construct a text element.
Text(encoding_t text_encoding, const Span< const uint8_t > &language_code, const Span< const uint8_t > &text)
Construct a text element from a data buffer and an encoding.
Span< const uint8_t > get_text() const
Return the text contained in this object.
void set_text(encoding_t text_encoding, const Span< const uint8_t > &language_code, const Span< const uint8_t > &text)
Copy a text from an external buffer.
Text & operator=(const Text &to_copy)
Copy assignment of another text element.
Text()
Construct an empty text element.
encoding_t get_encoding() const
Get the encoding of the text.
size_t get_record_size() const
Compute the size of this object in a ndef record.
Span< const uint8_t > get_language_code() const
Return the language code.
bool append_as_record(MessageBuilder &message_builder, bool is_last_record=false) const
Append into a message builder.