aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers/CodedOutputStream.cs
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2011-06-08 18:00:43 -0500
committerrogerk <devnull@localhost>2011-06-08 18:00:43 -0500
commitaef072a46f7c902e6fa1adf18e34f8d4b1eba38a (patch)
tree0de385dfaf8e42a1084665267808344017783504 /src/ProtocolBuffers/CodedOutputStream.cs
parent4ba365d7932ca661640a402c93d2dfb2816ffd62 (diff)
downloadprotobuf-aef072a46f7c902e6fa1adf18e34f8d4b1eba38a.tar.gz
protobuf-aef072a46f7c902e6fa1adf18e34f8d4b1eba38a.tar.bz2
protobuf-aef072a46f7c902e6fa1adf18e34f8d4b1eba38a.zip
Renamed Bytes to ByteArray and added a Reverse method.
Diffstat (limited to 'src/ProtocolBuffers/CodedOutputStream.cs')
-rw-r--r--src/ProtocolBuffers/CodedOutputStream.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ProtocolBuffers/CodedOutputStream.cs b/src/ProtocolBuffers/CodedOutputStream.cs
index bd508661..0bc4a462 100644
--- a/src/ProtocolBuffers/CodedOutputStream.cs
+++ b/src/ProtocolBuffers/CodedOutputStream.cs
@@ -648,7 +648,7 @@ namespace Google.ProtocolBuffers
#if SILVERLIGHT2 || COMPACT_FRAMEWORK_35
byte[] rawBytes = BitConverter.GetBytes(value);
if (!BitConverter.IsLittleEndian)
- Array.Reverse(rawBytes);
+ ByteArray.Reverse(rawBytes);
if (limit - position >= 8)
{
@@ -674,8 +674,8 @@ namespace Google.ProtocolBuffers
public void WriteFloatNoTag(float value)
{
byte[] rawBytes = BitConverter.GetBytes(value);
- if (!BitConverter.IsLittleEndian)
- Array.Reverse(rawBytes);
+ if (!BitConverter.IsLittleEndian)
+ ByteArray.Reverse(rawBytes);
if (limit - position >= 4)
{
@@ -1008,7 +1008,7 @@ namespace Google.ProtocolBuffers
{
if (limit - position >= length)
{
- Bytes.Copy(value, offset, buffer, position, length);
+ ByteArray.Copy(value, offset, buffer, position, length);
// We have room in the current buffer.
position += length;
}
@@ -1017,7 +1017,7 @@ namespace Google.ProtocolBuffers
// Write extends past current buffer. Fill the rest of this buffer and
// flush.
int bytesWritten = limit - position;
- Bytes.Copy(value, offset, buffer, position, bytesWritten);
+ ByteArray.Copy(value, offset, buffer, position, bytesWritten);
offset += bytesWritten;
length -= bytesWritten;
position = limit;
@@ -1029,7 +1029,7 @@ namespace Google.ProtocolBuffers
if (length <= limit)
{
// Fits in new buffer.
- Bytes.Copy(value, offset, buffer, 0, length);
+ ByteArray.Copy(value, offset, buffer, 0, length);
position = length;
}
else