Skip to content

Commit 0d87057

Browse files
authored
Merge pull request #775 from moreal/canbenull-to-notnull-attributes
Fixed #774, Update attributes in function Msg.Put
2 parents e1640de + 40e8fef commit 0d87057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NetMQ/Msg.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public override string ToString()
324324
/// <param name="src">the source byte-array to copy from</param>
325325
/// <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 dstOffset, int len)
327+
public void Put([NotNull] byte[] src, int dstOffset, int len)
328328
{
329329
if (len == 0 || src == null)
330330
return;
@@ -339,7 +339,7 @@ public void Put([CanBeNull] byte[] src, int dstOffset, int len)
339339
/// <param name="srcOffset">first byte in the source byte-array</param>
340340
/// <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 dstOffset, int len) {
342+
public void Put([NotNull] byte[] src, int srcOffset, int dstOffset, int len) {
343343
if (len == 0 || src == null)
344344
return;
345345
Buffer.BlockCopy(src, srcOffset, Data, dstOffset, len);

0 commit comments

Comments
 (0)