update lcemp networking

This commit is contained in:
2026-08-14 07:02:50 +03:00
parent 125819419f
commit 6853eab85f
51 changed files with 629 additions and 183 deletions
+6 -1
View File
@@ -31,7 +31,12 @@ void ByteArrayOutputStream::write(unsigned int b)
{
// If we will fill the buffer we need to make it bigger
if( count + 1 >= buf.length )
buf.resize( buf.length * 2 );
{
unsigned int newSize = buf.length * 2;
if( newSize <= buf.length )
return;
buf.resize( newSize );
}
buf[count] = (byte) b;
count++;