Table of Contents
Provides a simplified nullable type for unmanaged types, used as a replacement for Il2CPP's nullable implementation
public struct HookNullable<T>
where T : unmanaged, System.ValueType, System.ValueType
T
The underlying unmanaged type
Constructor that takes in the value set
public HookNullable(T value);
value
T
Value to contain
Indicates whether a value is present
A non-zero value indicates that the Value is valid
public byte HasValue;
The underlying value of type T if available
Access this value only when HasValue indicates that a value is present
public T Value;
Adds a quick way to get whatever value is contained
public T GetValueOrDefault();