mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 22:17:50 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
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 +
|
||||
|
||||
Reference in new issue
Block a user