We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 226248a commit eb0aaadCopy full SHA for eb0aaad
src/NetMQ/NetMQFrame.cs
@@ -337,5 +337,14 @@ public byte[] ToByteArray(bool copy = false)
337
338
return byteArray;
339
}
340
+
341
+ /// <summary>
342
+ /// Return an readonly span of bytes that carries the content of this NetMQFrames Buffer.
343
+ /// </summary>
344
+ /// <returns>the Buffer as a readonly span</returns>
345
+ public ReadOnlySpan<byte> AsSpan()
346
+ {
347
+ return new ReadOnlySpan<byte>(Buffer, 0, MessageSize);
348
+ }
349
350
0 commit comments