You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The runtime should enable a way for the host to provide the data representing an assembly. This is a similar idea to the existing bundle_probe, but with the host fully handling populating the data (as opposed to it being an offset into the current executable that the runtime then maps).
// Probe for an assembly by `path`. Sets the data representing the assembly (`data`, `size`)// Returns true if found, false otherwise.bool(HOST_CONTRACT_CALLTYPE* external_assembly_probe)(
constchar* path,
/*out*/void** data
/*out*/int64_t* size);
This will be called before the default assembly resolution by the runtime. If both bundle_probe and external_assembly_probe are set, bundle_probe is called first.
Add callback to host-runtime contract and make runtime invoke it as part of assembly resolution
Signature is altered on Android, by adding a pointer to the host contract
structure.
The host contract structure also gains a new pointer, `external_assembly_probe`
(proposed in dotnet#112706) which is used, if
present, when `bundle_probe` is `nullptr` or if it returns `false` when called.
Either `bundle_probe` or `external_assembly_probe` must be set in the contract
…data (#112705)
Add a new callback to `host_runtime_contract` that is called default assembly resolution:
```c++
// Probe the host for `path`. Sets pointer to data start and its size, if found.
// Returns true if found, false otherwise. If false, out parameter values are ignored by the runtime.
bool(HOST_CONTRACT_CALLTYPE* external_assembly_probe)(
const char* path,
/*out*/ void** data
/*out*/ int64_t* size);
```
Contributes to #112706
This is a set of minimal changes required to make dotnet/android#9572 (the `.NET for Android` CoreCLR host) work with standard .NET for Android applications.
The runtime should enable a way for the host to provide the data representing an assembly. This is a similar idea to the existing
bundle_probe
, but with the host fully handling populating the data (as opposed to it being an offset into the current executable that the runtime then maps).To do this, we can update the
host_runtime_contract
with a new callback:This will be called before the default assembly resolution by the runtime. If both
bundle_probe
andexternal_assembly_probe
are set,bundle_probe
is called first.external_assembly_probe
to be separate from single-file bundle probing #113356The text was updated successfully, but these errors were encountered: