Merge remote-tracking branch 'origin/main'

This commit is contained in:
jaysunxiao committed 2021-10-13 20:57:36 +08:00
commit 2610334776
5 files changed
+19 -14

No files matched your search

@@ -35,7 +35,7 @@ public abstract class StringUtils {
public static final String SPACE = " ";
public static final String TAB = " ";
public static final String TAB_ASCII = "\t";
public static final String COMMA = ",";// [com·ma || 'kɒmə] n. 逗点; 逗号
public static final String COMMA_REGEX = ",|,";
@@ -58,7 +58,7 @@ namespace CsProtocol.Buffer
public void SetWriteOffset(int writeIndex)
{
if (writeOffset > buffer.Length)
if (writeIndex > buffer.Length)
{
throw new Exception("writeIndex[" + writeIndex + "] out of bounds exception: readerIndex: " + readOffset +
", writerIndex: " + writeOffset +
@@ -56,7 +56,7 @@ namespace CsProtocol.Buffer
public void SetWriteOffset(int writeIndex)
{
if (writeOffset > buffer.Length)
if (writeIndex > buffer.Length)
{
throw new Exception("writeIndex[" + writeIndex + "] out of bounds exception: readerIndex: " + readOffset +
", writerIndex: " + writeOffset +