diff options
author | Jose <jose@zeroc.com> | 2019-06-25 13:06:12 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-06-25 13:06:12 +0200 |
commit | e263a114c43b34ba8bb92cf3db9c349803b66cef (patch) | |
tree | 9a299e88c268fce8b109db708ee8971dc657dd2b | |
parent | Add missing calls to writePendingValues/readPendingValues - Close #367 (diff) | |
download | ice-e263a114c43b34ba8bb92cf3db9c349803b66cef.tar.bz2 ice-e263a114c43b34ba8bb92cf3db9c349803b66cef.tar.xz ice-e263a114c43b34ba8bb92cf3db9c349803b66cef.zip |
Performance improvements for C# streaming - Close #373
-rw-r--r-- | csharp/src/Ice/ByteBuffer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/csharp/src/Ice/ByteBuffer.cs b/csharp/src/Ice/ByteBuffer.cs index 6f572346dcb..d0872ecfa6f 100644 --- a/csharp/src/Ice/ByteBuffer.cs +++ b/csharp/src/Ice/ByteBuffer.cs @@ -214,13 +214,13 @@ namespace IceInternal public ByteBuffer put(byte b) { checkOverflow(1); - System.Buffer.SetByte(_bytes, _position++, b); + _bytes[_position++] = b; return this; } public ByteBuffer put(int pos, byte b) { - System.Buffer.SetByte(_bytes, pos, b); + _bytes[pos] = b; return this; } |