From aef072a46f7c902e6fa1adf18e34f8d4b1eba38a Mon Sep 17 00:00:00 2001 From: csharptest Date: Wed, 8 Jun 2011 18:00:43 -0500 Subject: Renamed Bytes to ByteArray and added a Reverse method. --- src/ProtocolBuffers/ByteString.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ProtocolBuffers/ByteString.cs') 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 /// public void CopyTo(byte[] array, int position) { - Bytes.Copy(bytes, 0, array, position, bytes.Length); + ByteArray.Copy(bytes, 0, array, position, bytes.Length); } /// -- cgit v1.2.3