SpanExtensions.AsBytes<T>(Span<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Span<byte> AsBytes<T> (this Span<T> span) where T : struct;
static member AsBytes : Span<'T (requires 'T : struct)> -> Span<byte> (requires 'T : struct)
<Extension()>
Public Function AsBytes(Of T As Structure) (span As Span(Of T)) As Span(Of Byte)
Type Parameters
- T
The type if items in the source Span<T>.
Parameters
- span
- Span<T>
The source slice, of type T
.
Returns
A Span<T> of bytes.