Skip to content

Commit

Permalink
Removing initial idea with blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
pachanga committed Nov 22, 2024
1 parent 9bc8523 commit 0e6e166
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 105 deletions.
90 changes: 0 additions & 90 deletions src/vm/util/blob.cs

This file was deleted.

19 changes: 4 additions & 15 deletions tests/test_blobs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,9 @@ public struct StructBlob
[Fact]
public void TestBlob()
{
var val = new StructBlob();
val.x = 1;
val.y = 10;
val.z = 100;

var blob = Blob<StructBlob>.New(ref val);

AssertEqual(1, blob.Value.x);
AssertEqual(10, blob.Value.y);
AssertEqual(100, blob.Value.z);

blob.Value.y = 30;
AssertEqual(30, blob.Value.y);

blob.Release();
//var val = new StructBlob();
//val.x = 1;
//val.y = 10;
//val.z = 100;
}
}

0 comments on commit 0e6e166

Please sign in to comment.