Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::sandbox::SvgSource Class Reference

Stateless-from-the-outside URI resolver. SvgSource holds the config knobs, but every fetch() call is independent and thread-safe. More...

#include "donner/editor/sandbox/SvgSource.h"

Public Member Functions

 SvgSource (SvgSourceOptions options={})
SvgFetchResult fetch (std::string_view uri) const
 Resolves uri to raw bytes. The URI is classified into a scheme (or falls through to "bare path"), the path is canonicalized and size-checked, and the file is read into memory. Never throws.

Detailed Description

Stateless-from-the-outside URI resolver. SvgSource holds the config knobs, but every fetch() call is independent and thread-safe.


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