diff --git a/src/SharpCompress/Readers/ReaderOptions.cs b/src/SharpCompress/Readers/ReaderOptions.cs index 49a91e932..b016a3b6a 100644 --- a/src/SharpCompress/Readers/ReaderOptions.cs +++ b/src/SharpCompress/Readers/ReaderOptions.cs @@ -5,6 +5,16 @@ namespace SharpCompress.Readers; public class ReaderOptions : OptionsBase { + /// + /// The default buffer size for stream operations. + /// This value (65536 bytes) is preserved for backward compatibility. + /// New code should use Constants.BufferSize instead (81920 bytes), which matches .NET's Stream.CopyTo default. + /// + [Obsolete( + "Use Constants.BufferSize instead. This constant will be removed in a future version." + )] + public const int DefaultBufferSize = 0x10000; + /// /// Look for RarArchive (Check for self-extracting archives or cases where RarArchive isn't at the start of the file) ///