Created
February 2, 2018 18:06
-
-
Save richlander/437976687a545e96a8665d31561dee9d to your computer and use it in GitHub Desktop.
Example of basic use of Span<T>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = new byte[10]; | |
Span<byte> bytes = arr; // Implicit cast from T[] to Span<T> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment