UpdatablePropertyBase Class
Namespace: Stride.UpdaterAssembly: Stride.Engine.dll
Shared class between UpdatableProperty and UpdatableCustomAccessor.
public abstract class UpdatablePropertyBase : UpdatableMember
| Name | Description | |
|---|---|---|
| Methods | ||
| GetBlittable(IntPtr, IntPtr) | Gets a blittable property (from its pointer). |
|
| GetStructAndUnbox(IntPtr, Object) | Gets and stores a non-blittable struct property into pre-allocated data, and return pointer to its start. |
|
| SetBlittable(IntPtr, IntPtr) | Sets a blittable property (from its pointer). |
|
| SetStruct(IntPtr, Object) | Sets a non-blittable struct property (given in boxed form). |
|
Methods
GetBlittable(IntPtr, IntPtr)
Gets a blittable property (from its pointer).
public abstract void GetBlittable(IntPtr obj, IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | obj | The container object. |
| System.IntPtr | data | The struct data. |
GetStructAndUnbox(IntPtr, Object)
Gets and stores a non-blittable struct property into pre-allocated data, and return pointer to its start.
public abstract IntPtr GetStructAndUnbox(IntPtr obj, object data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | obj | The container object. |
| System.Object | data | The pre-allocated boxed struct. |
Returns
| Type | Description |
|---|---|
| System.IntPtr |
SetBlittable(IntPtr, IntPtr)
Sets a blittable property (from its pointer).
public abstract void SetBlittable(IntPtr obj, IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | obj | The container object. |
| System.IntPtr | data | The struct data. |
SetStruct(IntPtr, Object)
Sets a non-blittable struct property (given in boxed form).
public abstract void SetStruct(IntPtr obj, object data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | obj | The container object. |
| System.Object | data | The new value to unbox and set |