Container attachment (cover, fonts). More...
#include <StormByte/multimedia/attachment.hxx>
Public Member Functions | |
| Attachment () | |
| Constructs an empty attachment. | |
| Attachment (StormByte::Safe::Optional< StormByte::Safe::String > fileName, StormByte::Safe::Optional< StormByte::Safe::String > mimeType, StormByte::Buffer::FIFO payload) noexcept | |
| Builds an attachment. | |
| Attachment (const Attachment &other) | |
| Copies attachment metadata and payload state. | |
| Attachment (Attachment &&other) noexcept | |
| Move constructor. | |
| ~Attachment () noexcept | |
| Destructor. | |
| Attachment & | operator= (const Attachment &other) |
| Copies attachment metadata and payload state. | |
| Attachment & | operator= (Attachment &&other) noexcept |
| Move assignment. | |
| const StormByte::Safe::Optional< StormByte::Safe::String > & | FileName () const noexcept |
| Original file name. | |
| const StormByte::Safe::Optional< StormByte::Safe::String > & | MimeType () const noexcept |
| MIME type. | |
| const StormByte::Buffer::FIFO & | Payload () const noexcept |
| Attachment bytes. | |
Container attachment (cover, fonts).
Not a Stream.
avformat exposes Matroska attached files as fake video tracks (AV_DISPOSITION_ATTACHED_PIC). This type is the real contract. Metadata and payload retain creator-owned storage. Base, Buffer and Multimedia providers must remain loaded while attachments are in use.
| StormByte::Multimedia::Attachment::Attachment | ( | ) |
Constructs an empty attachment.
| StormByte::Exception | Safe metadata initialization failed. |
|
noexcept |
Builds an attachment.
| fileName | Source file name, if known. |
| mimeType | MIME type, if known. |
| payload | File bytes. |
| StormByte::Multimedia::Attachment::Attachment | ( | const Attachment & | other | ) |
Copies attachment metadata and payload state.
| other | Attachment to copy. |
| StormByte::Exception | Safe metadata copying failed. |
|
noexcept |
Move constructor.
| other | Attachment to take. |
|
noexcept |
Destructor.
|
noexcept |
Original file name.
|
noexcept |
MIME type.
|
noexcept |
| Attachment & StormByte::Multimedia::Attachment::operator= | ( | const Attachment & | other | ) |
Copies attachment metadata and payload state.
| other | Attachment to copy. |
| StormByte::Exception | Safe storage copying failed. |
|
noexcept |
Attachment bytes.