aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/ByteArray.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src/ProtocolBuffers/ByteArray.cs')
-rw-r--r--csharp/src/ProtocolBuffers/ByteArray.cs18
1 files changed, 5 insertions, 13 deletions
diff --git a/csharp/src/ProtocolBuffers/ByteArray.cs b/csharp/src/ProtocolBuffers/ByteArray.cs
index 211a0e11..14e2744a 100644
--- a/csharp/src/ProtocolBuffers/ByteArray.cs
+++ b/csharp/src/ProtocolBuffers/ByteArray.cs
@@ -59,19 +59,11 @@ namespace Google.Protobuf
}
else
{
- ByteCopy(src, srcOffset, dst, dstOffset, count);
- }
- }
-
- /// <summary>
- /// Copy the bytes provided with a for loop, faster when there are only a few bytes to copy
- /// </summary>
- internal static void ByteCopy(byte[] src, int srcOffset, byte[] dst, int dstOffset, int count)
- {
- int stop = srcOffset + count;
- for (int i = srcOffset; i < stop; i++)
- {
- dst[dstOffset++] = src[i];
+ int stop = srcOffset + count;
+ for (int i = srcOffset; i < stop; i++)
+ {
+ dst[dstOffset++] = src[i];
+ }
}
}