Update src/SharpCompress/IO/PooledMemoryStream.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ad3c5dafd7
commit
891d1268fb
1 changed files with 1 additions and 1 deletions
|
|
@ -81,8 +81,8 @@ public sealed class PooledMemoryStream : MemoryStream
|
|||
}
|
||||
set
|
||||
{
|
||||
ThrowHelper.ThrowIfNegative(value, nameof(value));
|
||||
EnsureNotClosed();
|
||||
ThrowHelper.ThrowIfNegative(value, nameof(value));
|
||||
ThrowHelper.ThrowIfGreaterThan(value, MaxStreamLength, nameof(value));
|
||||
|
||||
_position = (int)value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue