Skip to content

Instantly share code, notes, and snippets.

@richlander
Created February 2, 2018 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richlander/437976687a545e96a8665d31561dee9d to your computer and use it in GitHub Desktop.
Save richlander/437976687a545e96a8665d31561dee9d to your computer and use it in GitHub Desktop.
Example of basic use of Span<T>
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