Skip to content

Class FieldAccess

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

Reads and writes a component's fields in its memory as s. data is the start of the component.

public static class FieldAccess

Inheritance

object ← FieldAccess

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

Value

Write(byte*, FieldDef, in Value)

Writes the value after checking its kind and range (a otherwise); an entity field also takes a plain number.

public static void Write(byte* data, FieldDef field, in Value value)

Parameters

data byte*

field FieldDef

value Value