Expose Unity FastReflection helpers and attribute argument APIs#2217
Draft
annevanede-unity3d wants to merge 10 commits into
Draft
Expose Unity FastReflection helpers and attribute argument APIs#2217annevanede-unity3d wants to merge 10 commits into
annevanede-unity3d wants to merge 10 commits into
Conversation
…/mono into unity-fast-reflection
…/mono into unity-fast-reflection
|
Christopher Redden seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release notes
Mono: Added native APIs to support Unity's FastReflection path — exposes additional class/type/generic helpers via
MONO_API, adds non-allocating accessors for custom attribute argument data (mono_unity_get_attr_args_infoand friends), a by-pointer variant ofmono_unity_generic_class_get_context, an assembly-name C-string helper, andmono_unity_type_is_unmanaged/mono_unity_type_is_blittable_primitivepredicates.Summary of changes
mono/metadata/unity-utils.h,unity-utils.c:MonoAttrArgsInfostruct andmono_unity_get_attr_args_info/_free/_type_arg_count/_as_class/_as_int/_as_uint64/mono_unity_get_attr_type_argfor reading custom attribute constructor arguments without managed allocation.mono_unity_generic_class_get_context_by_ptrto returnMonoGenericContextvia out-pointer instead of by value.mono_unity_class_get_assembly_name_cstringhelper.mono_unity_type_is_blittable_primitiveandmono_unity_type_is_unmanagedpredicates (the latter inspects fields of non-blittable valuetypes).MONO_API:mono_unity_class_get_generic_definition,mono_unity_class_is_array,mono_unity_class_is_class_type,mono_unity_type_is_generic_instance,mono_unity_type_get_generic_class,mono_unity_generic_inst_get_type_argc,mono_unity_generic_inst_get_type_argument.mono/metadata/class-internals.h: promotemono_class_has_default_constructortoMONO_API.