Class FieldAccess¶
Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll
Reads and writes a component's fields in its memory as data is the start of the component.
public static class FieldAccess
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
Read(byte*, FieldDef)¶
public static Value Read(byte* data, FieldDef field)
Parameters¶
data byte*
field FieldDef
Returns¶
Write(byte*, FieldDef, in Value)¶
Writes the value after checking its kind and range (a
public static void Write(byte* data, FieldDef field, in Value value)
Parameters¶
data byte*
field FieldDef
value Value