You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/Reloaded.Memory/Reloaded.Memory.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
<RepositoryUrl></RepositoryUrl>
17
17
<RepositoryType></RepositoryType>
18
18
<Description>A fully featured C# memory editing library supporting reading/writing primitive or generic struct types in either current or an external process.</Description>
Copy file name to clipboardExpand all lines: Source/Reloaded.Memory/Streams/ExtendedMemoryStream.cs
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ public void Write<T>(ref T structure) where T : unmanaged
98
98
{
99
99
Span<byte>stack=stackallocbyte[sizeof(T)];
100
100
Struct.GetBytes(refstructure,stack);
101
-
base.Write(stack);
101
+
Write(stack);
102
102
}
103
103
else
104
104
{
@@ -109,6 +109,16 @@ public void Write<T>(ref T structure) where T : unmanaged
109
109
#endif
110
110
}
111
111
112
+
113
+
#if FEATURE_NATIVE_SPAN
114
+
/// <summary>
115
+
/// Writes the sequence of bytes contained in source into the current memory stream and advances the current position within this memory stream by the number of bytes written.
116
+
/// </summary>
117
+
/// <param name="source">A region of memory. This method copies the contents of this region to the current memory stream.</param>
0 commit comments