Skip to content

Commit

Permalink
Prepping for feature
Browse files Browse the repository at this point in the history
  • Loading branch information
thygrrr committed Nov 13, 2024
1 parent 5afdc0a commit 2626c20
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions fennecs.tests/Stream/Stream.2.Tests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections;
using fennecs.storage;

namespace fennecs.tests.Stream;

Expand Down Expand Up @@ -35,6 +36,12 @@ [Fact] public void Can_Use_WR_Inferred()
Assert.Equal(123, a.read);
Assert.Equal(890f, b.read);
});

stream.For(static (a, b) =>
{
Assert.Equal(123, a.read);
Assert.Equal(890f, b.write);
});
}

[Fact] public void Can_Use_WW_Inferred()
Expand Down
3 changes: 3 additions & 0 deletions fennecs/Delegates.1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ namespace fennecs;


#region Raw: Memory Actions

public delegate void MemoryActionR<C0>(ReadOnlyMemory<C0> comp0) where C0 : notnull;
public delegate void MemoryActionW<C0>(Memory<C0> comp0) where C0 : notnull;

#endregion


#region Raw: Entity Memory Actions

public delegate void EntityMemoryActionR<C0>(ReadOnlyMemory<Entity> entities, ReadOnlyMemory<C0> comp0) where C0 : notnull;
public delegate void EntityMemoryActionW<C0>(ReadOnlyMemory<Entity> entities, Memory<C0> comp0) where C0 : notnull;

Expand Down
3 changes: 2 additions & 1 deletion fennecs/Delegates.2.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using fennecs.storage;
using System.Runtime.InteropServices;
using fennecs.storage;

// ReSharper disable InconsistentNaming
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
Expand Down

0 comments on commit 2626c20

Please sign in to comment.