Method CalculateFieldOffsetsUnmanaged
CalculateFieldOffsetsUnmanaged(Type, out bool, out bool, out bool, out bool, ref NativeList<EntityOffsetInfo>, ref NativeList<EntityOffsetInfo>, ref NativeList<EntityOffsetInfo>, ref NativeList<EntityOffsetInfo>, HashSet<Type>)
Calculates the field offsets.
Declaration
public static void CalculateFieldOffsetsUnmanaged(Type type, out bool hasEntityRefs, out bool hasBlobRefs, out bool hasWeakAssetRefs, out bool hasUnityObjectRefs, ref NativeList<TypeManager.EntityOffsetInfo> entityOffsets, ref NativeList<TypeManager.EntityOffsetInfo> blobOffsets, ref NativeList<TypeManager.EntityOffsetInfo> weakAssetRefOffsets, ref NativeList<TypeManager.EntityOffsetInfo> unityObjectRefOffsets, HashSet<Type> cache = null)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The inspected type. |
bool | hasEntityRefs | True if the type has any fields of type Entity, otherwise false. |
bool | hasBlobRefs | True if the type has any fields of type Blob |
bool | hasWeakAssetRefs | True if the type has fields of type Untyped |
bool | hasUnityObjectRefs | True if the type has fields of type Unity |
Native |
entityOffsets | The offsets of the fields of type Entity. |
Native |
blobOffsets | The offsets of the fields of type Blob |
Native |
weakAssetRefOffsets | The offsets of the fields of type Untyped |
Native |
unityObjectRefOffsets | The offsets of the fields of type Unity |
Hash |
cache | Cache to accelerate type inspection codepaths when calling this function multiple times. |