diff --git a/protocol/src/main/resources/csharp/Buffer/ByteBuffer.cs b/protocol/src/main/resources/csharp/Buffer/ByteBuffer.cs index f8bc3d1e4..143d463c3 100644 --- a/protocol/src/main/resources/csharp/Buffer/ByteBuffer.cs +++ b/protocol/src/main/resources/csharp/Buffer/ByteBuffer.cs @@ -92,7 +92,7 @@ public void SetWriteOffset(int writeIndex) throw new Exception("writeIndex[" + writeIndex + "] out of bounds exception: readOffset: " + readOffset + ", writeOffset: " + writeOffset + - "(expected: 0 <= readOffset <= writeOffset <= capacity:" + buffer.Length) + ")"; + "(expected: 0 <= readOffset <= writeOffset <= capacity:" + buffer.Length + ")"); } writeOffset = writeIndex; } @@ -108,7 +108,7 @@ public void SetReadOffset(int readIndex) { throw new Exception("readIndex[" + readIndex + "] out of bounds exception: readIndex: " + readOffset + ", writeOffset: " + writeOffset + - "(expected: 0 <= readOffset <= writeOffset <= capacity:" + buffer.Length) + ")"; + "(expected: 0 <= readOffset <= writeOffset <= capacity:" + buffer.Length + ")"); } readOffset = readIndex; } diff --git a/protocol/src/main/resources/javascript/buffer/ByteBuffer.js b/protocol/src/main/resources/javascript/buffer/ByteBuffer.js index 2ecf9a469..82b8079e2 100644 --- a/protocol/src/main/resources/javascript/buffer/ByteBuffer.js +++ b/protocol/src/main/resources/javascript/buffer/ByteBuffer.js @@ -100,7 +100,7 @@ const ByteBuffer = function() { if (writeIndex > this.buffer.byteLength) { throw new Error('writeIndex out of bounds exception: readOffset: ' + this.readOffset + ', writeOffset: ' + this.writeOffset + - '(expected: 0 <= readOffset <= writeOffset <= capacity:' + this.buffer.byteLength) + ')'; + '(expected: 0 <= readOffset <= writeOffset <= capacity:' + this.buffer.byteLength + ')'); } this.writeOffset = writeIndex; }; diff --git a/protocol/src/test/cpp/zfoocpp/ByteBuffer.h b/protocol/src/test/cpp/zfoocpp/ByteBuffer.h index 52d69bb0e..c1eae9d10 100644 --- a/protocol/src/test/cpp/zfoocpp/ByteBuffer.h +++ b/protocol/src/test/cpp/zfoocpp/ByteBuffer.h @@ -123,7 +123,7 @@ namespace zfoo { "writeIndex[" + std::to_string(writeIndex) + "] out of bounds exception: readOffset: " + std::to_string(readOffset) + ", writeOffset: " + std::to_string(writeOffset) + - "(expected: 0 <= readOffset <= writeOffset <= capacity:" + std::to_string(max_capacity); + "(expected: 0 <= readOffset <= writeOffset <= capacity:" + std::to_string(max_capacity) + ")"; throw errorMessage; } writeOffset = writeIndex; @@ -135,7 +135,7 @@ namespace zfoo { "readIndex[" + std::to_string(readIndex) + "] out of bounds exception: readOffset: " + std::to_string(readOffset) + ", writeOffset: " + std::to_string(writeOffset) + - "(expected: 0 <= readOffset <= writeOffset <= capacity:" + std::to_string(max_capacity); + "(expected: 0 <= readOffset <= writeOffset <= capacity:" + std::to_string(max_capacity) + ")"; throw errorMessage; } readOffset = readIndex; diff --git a/protocol/src/test/csharp/zfoocs/Buffer/ByteBuffer.cs b/protocol/src/test/csharp/zfoocs/Buffer/ByteBuffer.cs index a231ada00..143d463c3 100644 --- a/protocol/src/test/csharp/zfoocs/Buffer/ByteBuffer.cs +++ b/protocol/src/test/csharp/zfoocs/Buffer/ByteBuffer.cs @@ -92,7 +92,7 @@ public void SetWriteOffset(int writeIndex) throw new Exception("writeIndex[" + writeIndex + "] out of bounds exception: readOffset: " + readOffset + ", writeOffset: " + writeOffset + - "(expected: 0 <= readOffset <= writeOffset <= capacity:" + buffer.Length); + "(expected: 0 <= readOffset <= writeOffset <= capacity:" + buffer.Length + ")"); } writeOffset = writeIndex; } @@ -108,7 +108,7 @@ public void SetReadOffset(int readIndex) { throw new Exception("readIndex[" + readIndex + "] out of bounds exception: readIndex: " + readOffset + ", writeOffset: " + writeOffset + - "(expected: 0 <= readOffset <= writeOffset <= capacity:" + buffer.Length); + "(expected: 0 <= readOffset <= writeOffset <= capacity:" + buffer.Length + ")"); } readOffset = readIndex; } diff --git a/protocol/src/test/javascript/zfoojs/buffer/ByteBuffer.js b/protocol/src/test/javascript/zfoojs/buffer/ByteBuffer.js index 2ecf9a469..82b8079e2 100644 --- a/protocol/src/test/javascript/zfoojs/buffer/ByteBuffer.js +++ b/protocol/src/test/javascript/zfoojs/buffer/ByteBuffer.js @@ -100,7 +100,7 @@ const ByteBuffer = function() { if (writeIndex > this.buffer.byteLength) { throw new Error('writeIndex out of bounds exception: readOffset: ' + this.readOffset + ', writeOffset: ' + this.writeOffset + - '(expected: 0 <= readOffset <= writeOffset <= capacity:' + this.buffer.byteLength) + ')'; + '(expected: 0 <= readOffset <= writeOffset <= capacity:' + this.buffer.byteLength + ')'); } this.writeOffset = writeIndex; };