|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
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. | |
Stateless-from-the-outside URI resolver. SvgSource holds the config knobs, but every fetch() call is independent and thread-safe.