summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--csharp/src/Ice/ByteBuffer.cs4
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;
}