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
* Added `UnmanagedMemory.AsMemory` static method that allows to wrap unmanaged pointer into [Memory<T>](https://learn.microsoft.com/en-us/dotnet/api/system.memory-1)
* Added `AsUnbufferedStream` extension method for [SafeFileHandle](https://learn.microsoft.com/en-us/dotnet/api/microsoft.win32.safehandles.safefilehandle) class
This repository uses branching model known as [git flow](https://nvie.com/posts/a-successful-git-branching-model/). Use **develop** as the destination branch in your Pull Request.
19
19
20
+
Since 5.x release, squash commit is used to merge all commits related to the release when moving to `main` branch.
21
+
20
22
## Backward Compatibility
21
23
Contributions must not contain breaking changes such as backward incompatible modification of API signatures. The only exception is a new major version of the library. However, it should pass through code review and discussion.
*Added `UnmanagedMemory.AsMemory` static method that allows to wrap unmanaged pointer into [Memory<T>](https://learn.microsoft.com/en-us/dotnet/api/system.memory-1)
* Added `AsUnbufferedStream` extension method for [SafeFileHandle](https://learn.microsoft.com/en-us/dotnet/api/microsoft.win32.safehandles.safefilehandle) class
Copy file name to clipboardExpand all lines: src/DotNext.IO/IO/StreamSegment.cs
+30-43Lines changed: 30 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -8,29 +8,16 @@
8
8
/// <remarks>
9
9
/// The segmentation is supported only for seekable streams.
10
10
/// </remarks>
11
-
publicsealedclassStreamSegment:Stream,IFlushable
11
+
/// <param name="stream">The underlying stream represented by the segment.</param>
12
+
/// <param name="leaveOpen"><see langword="true"/> to leave <paramref name="stream"/> open after the object is disposed; otherwise, <see langword="false"/>.</param>
/// Initializes a new segment of the specified stream.
18
-
/// </summary>
19
-
/// <param name="stream">The underlying stream represented by the segment.</param>
20
-
/// <param name="leaveOpen"><see langword="true"/> to leave <paramref name="stream"/> open after the object is disposed; otherwise, <see langword="false"/>.</param>
21
-
/// <exception cref="ArgumentNullException"><paramref name="stream"/> is <see langword="null"/>.</exception>
/// <param name="offset">The offset in the underlying stream.</param>
42
29
/// <param name="length">The length of the segment.</param>
43
-
/// <exception cref="ArgumentOutOfRangeException"><paramref name="length"/> is larger than the reamining length of the underlying stream; or <paramref name="offset"/> if greater than the length of the underlying stream.</exception>
30
+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="length"/> is larger than the remaining length of the underlying stream; or <paramref name="offset"/> if greater than the length of the underlying stream.</exception>
0 commit comments