Skip to content

Commit

Permalink
Fix: Do not include Span in NS2.0; fixes recent merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Feb 8, 2023
1 parent 06876f8 commit af66c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
Reloaded.Memory.Streams.Writers.EndianMemoryStream.Write(System.ReadOnlySpan<byte> data) -> void
Reloaded.Memory.Streams.Writers.EndianMemoryStream.Write(System.Span<byte> data) -> void
2 changes: 2 additions & 0 deletions Source/Reloaded.Memory/Streams/Writers/EndianMemoryStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void Dispose()
/// </summary>
public void Write(byte[] data) => Stream.Write(data);

#if FEATURE_NATIVE_SPAN
/// <summary>
/// Appends bytes onto the given <see cref="MemoryStream"/> and advances the position.
/// </summary>
Expand All @@ -72,6 +73,7 @@ public void Dispose()
/// Appends bytes onto the given <see cref="MemoryStream"/> and advances the position.
/// </summary>
public void Write(ReadOnlySpan<byte> data) => Stream.Write(data);
#endif

/// <summary>
/// Appends an unmanaged structure onto the <see cref="MemoryStream"/> and advances the position.
Expand Down

0 comments on commit af66c3b

Please sign in to comment.