diff options
author | csharptest <roger@csharptest.net> | 2011-06-08 18:00:43 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-06-08 18:00:43 -0500 |
commit | aef072a46f7c902e6fa1adf18e34f8d4b1eba38a (patch) | |
tree | 0de385dfaf8e42a1084665267808344017783504 /src/ProtocolBuffers/ByteString.cs | |
parent | 4ba365d7932ca661640a402c93d2dfb2816ffd62 (diff) | |
download | protobuf-aef072a46f7c902e6fa1adf18e34f8d4b1eba38a.tar.gz protobuf-aef072a46f7c902e6fa1adf18e34f8d4b1eba38a.tar.bz2 protobuf-aef072a46f7c902e6fa1adf18e34f8d4b1eba38a.zip |
Renamed Bytes to ByteArray and added a Reverse method.
Diffstat (limited to 'src/ProtocolBuffers/ByteString.cs')
-rw-r--r-- | src/ProtocolBuffers/ByteString.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ProtocolBuffers/ByteString.cs b/src/ProtocolBuffers/ByteString.cs index 06708af7..e5f422d4 100644 --- a/src/ProtocolBuffers/ByteString.cs +++ b/src/ProtocolBuffers/ByteString.cs @@ -123,7 +123,7 @@ namespace Google.ProtocolBuffers public static ByteString CopyFrom(byte[] bytes, int offset, int count)
{
byte[] portion = new byte[count];
- Bytes.Copy(bytes, offset, portion, 0, count);
+ ByteArray.Copy(bytes, offset, portion, 0, count);
return new ByteString(portion);
}
@@ -261,7 +261,7 @@ namespace Google.ProtocolBuffers /// </summary>
public void CopyTo(byte[] array, int position)
{
- Bytes.Copy(bytes, 0, array, position, bytes.Length);
+ ByteArray.Copy(bytes, 0, array, position, bytes.Length);
}
/// <summary>
|