Allocate native header storage in the active runtime.
inputFields to copy; omitted fields use native defaults.
Copy ordered native RCSS resources.
Independent resource records.
Replace all native RCSS resources in one call.
valueOrdered resources using native defaults.
Copy ordered native script resources.
Independent resource records.
Replace all native script resources in one call.
valueOrdered resources using native defaults.
Native document source.
Stored source path.
Replace the native source path.
valueSource path without null bytes.
Copy native template_resources.
Independent path list in source order.
Replace native template_resources.
valuePaths to copy without resolving them.
Native header title.
Stored title.
Replace the native header title.
valueTitle to copy.
Execute native MergeHeader, retaining nonempty receiver source and title.
sourceNative header to append; self-merge uses a snapshot.
Execute native MergePaths on independent target and source copies.
targetExisting paths to preserve.
sourcePaths to resolve and append.
basePathNative source file path used by JoinPath.
Merged path copy; input arrays and this header stay unchanged.
Execute native MergeResources, preserving literal paths and list order.
targetResources to preserve.
sourceResources to append.
Merged resource copy; input arrays and this header stay unchanged.
Atomically replace all fields after input validation.
inputComplete replacement; omitted fields reset to defaults.
Copy all native fields in one call.
Independent complete snapshot.
Native-owned Rml::DocumentHeader for document parsing and resource merging.
Remarks
Inputs and outputs are independent copies. replace transfers all fields in one native entry. merge operations execute upstream code; mergePaths and mergeResources return the modified target copy. Shutdown invalidates the header. A header records script resources; their execution needs a script host, since Core's base document script hooks are empty.