expand buffer until large enough for input bytes (#233)
Fixes an argument out of range error with buffered writing. Bumps release
This commit is contained in:
parent
bbdb561de8
commit
a784b715f7
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ namespace Server
|
|||
|
||||
public void Write(byte[] value, int length)
|
||||
{
|
||||
if (m_Index + length > Data.Length)
|
||||
while (m_Index + length > Data.Length)
|
||||
Expand();
|
||||
|
||||
Buffer.BlockCopy(value, 0, Data, m_Index, length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue