loadBinaryResource
fn
const(ubyte)[] loadBinaryResource(
string resolved,
XmlResourcePolicy policy,
XmlErrorCode forbiddenCode,
XmlErrorCode ioErrorCode,
string purpose,
XmlLocation loc = XmlLocation.init) @safeLoads a resource as raw bytes under policy.
This is used by features that need to handle encodings at a higher level (e.g. XInclude parse='text' and XML parsing with an encoding declaration).
Parameters
resolved | A resolved identifier (filesystem path, or URI). |
policy | Loading policy. |
forbiddenCode | Error code used when the policy forbids loading. |
ioErrorCode | Error code used for I/O failures. |
purpose | Human-readable description (used in error messages). |
loc | Optional location for error reporting. |
Returns
The loaded bytes.
fn
const(ubyte)[] loadBinaryResource(
string resolved,
ref XmlResourceLoader loader,
XmlErrorCode forbiddenCode,
XmlErrorCode ioErrorCode,
string purpose,
XmlLocation loc = XmlLocation.init) @safeLoads a resource as raw bytes using a pluggable loader.
private fn
const(ubyte)[] loadBinaryResource(
string resolved,
XmlResourcePolicy policy,
XmlErrorCode forbiddenCode,
XmlErrorCode ioErrorCode,
string purpose,
XmlLocation loc,
const(ubyte)[] delegate(string uri, XmlResourcePolicy policy, XmlLocation loc) @safe fetch) @safeNo documentation available for this declaration.