Skip to content

Commit

Permalink
Adding convenience Val.SetBlob<T>(..) setter
Browse files Browse the repository at this point in the history
  • Loading branch information
pachanga committed Nov 22, 2024
1 parent 2bc3725 commit a51b58d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vm/val.cs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ public void SetBlob<T>(ref T val, IType type) where T : unmanaged
_obj = data;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetBlob<T>(T val, IType type) where T : unmanaged
{
SetBlob(ref val, type);
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public ref T GetBlob<T>() where T : unmanaged
{
Expand Down

0 comments on commit a51b58d

Please sign in to comment.