Represent a mime object. More...
#include <Mime.h>
| Public Member Functions | |
| Mime () | |
| Construct an empty Mime object.  More... | |
| Mime (const Span< const uint8_t > &mime_type, const Span< const uint8_t > &content) | |
| Construct a mime object from its type and content.  More... | |
| Mime (const Mime &other) | |
| Copy construct a Mime object.  More... | |
| ~Mime () | |
| Destroy a Mime object.  More... | |
| Mime & | operator= (const Mime &other) | 
| Copy assign a Mime object.  More... | |
| void | set_mime (const Span< const uint8_t > &mime_type, const Span< const uint8_t > &content) | 
| Set all attributes of a mime object.  More... | |
| Span< const uint8_t > | get_mime_type () const | 
| Return the mime type.  More... | |
| Span< const uint8_t > | get_mime_content () const | 
| Return the content of the mime object.  More... | |
| bool | append_as_record (MessageBuilder &message_builder, bool is_last_record=false) const | 
| Append into a message builder.  More... | |
| size_t | get_record_size () const | 
| Compute the size of this Mime object in a ndef record.  More... | |
Construct a mime object from its type and content.
| mime_type | The mime type of the object. | 
| content | The content of the object. | 
| bool append_as_record | ( | MessageBuilder & | message_builder, | 
| bool | is_last_record = false | ||
| ) | const | 
Append into a message builder.
| Span<const uint8_t> get_mime_content | ( | ) | const | 
Return the content of the mime object.
| Span<const uint8_t> get_mime_type | ( | ) | const | 
Return the mime type.
| size_t get_record_size | ( | ) | const | 
Compute the size of this Mime object in a ndef record.
Set all attributes of a mime object.
| mime_type | Type of the mime object. | 
| content | Content of the mime object. |