Skip to content

Commit e1640de

Browse files
authored
Merge pull request #773 from moreal/master
Rename variable name from 'i' to 'dstOffset'
2 parents a600d16 + 0d9a8aa commit e1640de

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/NetMQ/Msg.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -322,27 +322,27 @@ public override string ToString()
322322
/// Copy the given byte-array data to this Msg's Data buffer.
323323
/// </summary>
324324
/// <param name="src">the source byte-array to copy from</param>
325-
/// <param name="i">index within the internal Data array to copy that byte to</param>
325+
/// <param name="dstOffset">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 dstOffset, 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, dstOffset, len);
333333
}
334334

335335
/// <summary>
336336
/// Copy the given byte-array data to this Msg's Data buffer.
337337
/// </summary>
338338
/// <param name="src">the source byte-array to copy from</param>
339339
/// <param name="srcOffset">first byte in the source byte-array</param>
340-
/// <param name="i">index within the internal Data array to copy that byte to</param>
340+
/// <param name="dstOffset">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 dstOffset, int len) {
343343
if (len == 0 || src == null)
344344
return;
345-
Buffer.BlockCopy(src, srcOffset, Data, i, len);
345+
Buffer.BlockCopy(src, srcOffset, Data, dstOffset, len);
346346
}
347347

348348
/// <summary>

0 commit comments

Comments
 (0)