MemoryStream默认长度为0

This commit is contained in:
Stone 2016-06-13 10:51:37 +00:00
parent cd37894edc
commit 0a0648530d
1 changed files with 1 additions and 0 deletions

View File

@ -320,6 +320,7 @@ bool Stream::Write(UInt64 value)
MemoryStream::MemoryStream(uint len) : Stream(_Arr, ArrayLength(_Arr)) MemoryStream::MemoryStream(uint len) : Stream(_Arr, ArrayLength(_Arr))
{ {
Length = 0;
_needFree = false; _needFree = false;
if(len > ArrayLength(_Arr)) if(len > ArrayLength(_Arr))
{ {