mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-22 23:15:20 +00:00
Update src/SharpCompress/IO/PooledMemoryStream.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user