loadBinaryResource

fnconst(ubyte)[] loadBinaryResource( string resolved, XmlResourcePolicy policy, XmlErrorCode forbiddenCode, XmlErrorCode ioErrorCode, string purpose, XmlLocation loc = XmlLocation.init) @safe

Loads 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

resolvedA resolved identifier (filesystem path, or URI).
policyLoading policy.
forbiddenCodeError code used when the policy forbids loading.
ioErrorCodeError code used for I/O failures.
purposeHuman-readable description (used in error messages).
locOptional location for error reporting.

Returns

The loaded bytes.
fnconst(ubyte)[] loadBinaryResource( string resolved, ref XmlResourceLoader loader, XmlErrorCode forbiddenCode, XmlErrorCode ioErrorCode, string purpose, XmlLocation loc = XmlLocation.init) @safe

Loads a resource as raw bytes using a pluggable loader.

private fnconst(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) @safe
No documentation available for this declaration.