Skip to content

Commit bac3974

Browse files
committed
Rename variable name from 'i' to 'destOffset'
1 parent a600d16 commit bac3974

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NetMQ/Msg.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ public override string ToString()
324324
/// <param name="src">the source byte-array to copy from</param>
325325
/// <param name="i">index within the internal Data array to copy that byte to</param>
326326
/// <param name="len">the number of bytes to copy</param>
327-
public void Put([CanBeNull] byte[] src, int i, int len)
327+
public void Put([CanBeNull] byte[] src, int destOffset, int len)
328328
{
329329
if (len == 0 || src == null)
330330
return;
331331

332-
Buffer.BlockCopy(src, 0, Data, i, len);
332+
Buffer.BlockCopy(src, 0, Data, destOffset, len);
333333
}
334334

335335
/// <summary>
@@ -339,10 +339,10 @@ public void Put([CanBeNull] byte[] src, int i, int len)
339339
/// <param name="srcOffset">first byte in the source byte-array</param>
340340
/// <param name="i">index within the internal Data array to copy that byte to</param>
341341
/// <param name="len">the number of bytes to copy</param>
342-
public void Put([CanBeNull] byte[] src, int srcOffset, int i, int len) {
342+
public void Put([CanBeNull] byte[] src, int srcOffset, int destOffset, int len) {
343343
if (len == 0 || src == null)
344344
return;
345-
Buffer.BlockCopy(src, srcOffset, Data, i, len);
345+
Buffer.BlockCopy(src, srcOffset, Data, destOffset, len);
346346
}
347347

348348
/// <summary>

0 commit comments

Comments
 (0)