public void Set <T>(GlobalVariableId <T> id, T value) where T : unmanaged { unsafe { fixed(Int64 *ptr = &_values[id.VariableId]) * (T *)ptr = value; } }
public T Get <T>(GlobalVariableId <T> id) where T : unmanaged { unsafe { fixed(Int64 *ptr = &_values[id.VariableId]) return(*(T *)ptr); } }
public void Set <T>(GlobalVariableId <T> id, T value) where T : unmanaged => throw new NotSupportedException();
public T Get <T>(GlobalVariableId <T> id) where T : unmanaged => throw new NotSupportedException();