Skip to content

Commit eb739ec

Browse files
committed
(GH-95) Use optional parameters in RebufferableBinaryReader constructor
1 parent 9034383 commit eb739ec

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

Source/HttpMultipartParser/RebufferableBinaryReader.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,6 @@ public RebufferableBinaryReader(Stream input)
7777
{
7878
}
7979

80-
/// <summary>
81-
/// Initializes a new instance of the <see cref="RebufferableBinaryReader" /> class.
82-
/// </summary>
83-
/// <param name="input">
84-
/// The input stream to read from.
85-
/// </param>
86-
/// <param name="encoding">
87-
/// The encoding to use for character based operations.
88-
/// </param>
89-
public RebufferableBinaryReader(Stream input, Encoding encoding)
90-
: this(input, encoding, 4096)
91-
{
92-
}
93-
9480
/// <summary>
9581
/// Initializes a new instance of the <see cref="RebufferableBinaryReader" /> class.
9682
/// </summary>
@@ -103,7 +89,7 @@ public RebufferableBinaryReader(Stream input, Encoding encoding)
10389
/// <param name="bufferSize">
10490
/// The buffer size to use for new buffers.
10591
/// </param>
106-
public RebufferableBinaryReader(Stream input, Encoding encoding, int bufferSize)
92+
public RebufferableBinaryReader(Stream input, Encoding encoding, int bufferSize = 4096)
10793
{
10894
stream = input;
10995
streamStack = new BinaryStreamStack(encoding);

0 commit comments

Comments
 (0)