Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::parser::DataUrlParser::Result Struct Reference

Result of parsing a data URL or external URL. More...

#include "donner/base/parser/DataUrlParser.h"

Collaboration diagram for donner::parser::DataUrlParser::Result:
[legend]

Public Types

enum class  Kind : uint8_t {
  ExternalUrl ,
  Data
}
 The payload of the source, which can be a URL or raw data (already parsed from the data URL). More...
 

Public Attributes

Kind kind
 What kind of URL this is.
 
std::string mimeType
 MIME type of the data, if known. Otherwise, an empty string.
 
std::variant< RcString, std::vector< uint8_t > > payload
 The payload of the source, which can be a URL or raw data (already parsed from the data URL).
 

Detailed Description

Result of parsing a data URL or external URL.

Member Enumeration Documentation

◆ Kind

The payload of the source, which can be a URL or raw data (already parsed from the data URL).

Enumerator
ExternalUrl 

A file path or URL, payload contains an RcString.

Data 

A data URL which has been parsed, payload contains the raw data as a vector.


The documentation for this struct was generated from the following file: