struct Span<T>
Provides a type- and memory-safe representation of a contiguous region of arbitrary memory.
TThe type of items in the .
public Span<T>( void* pointer, int length )
Creates a new object from a specified number of elements starting at a specified memory address.
pointerA pointer to the starting address of a specified number of elements in memory.lengthThe number of elements to be included in the .
public static Span<T> Empty { get; }
Returns an empty object.
- Returns An empty object.
public bool Equals( object obj )
Calls to this method are not supported.
objNot supported.- Returns Calls to this method are not supported.
public bool IsEmpty { get; }
Returns a value that indicates whether the current is empty.
- Returns if the current span is empty; otherwise, .
public int Length { get; }
Returns the length of the current span.
- Returns The length of the current span.
public Span<T> Slice( int start )
Forms a slice out of the current span that begins at a specified index.
startThe index at which to begin the slice.- Returns A span that consists of all elements of the current span from to the end of the span.
public Span<T> Slice( int start, int length )
Forms a slice out of the current span starting at a specified index for a specified length.
startThe index at which to begin this slice.lengthThe desired length for the slice.- Returns A span that consists of elements from the current span starting at .
public Span<T>( ref T reference )
😔 No documentation found.
public Span<T>( T[] array, int start, int length )
😔 No documentation found.
public Span<T>( T[] array )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public T[] ToArray( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public static ReadOnlySpan<T> op_Implicit( Span<T> span )
😔 No documentation found.
public static bool op_Equality( Span<T> left, Span<T> right )
😔 No documentation found.
public void Fill( T value )
😔 No documentation found.
public void CopyTo( Span<T> destination )
😔 No documentation found.
public void Clear( )
😔 No documentation found.
public ref T GetPinnableReference( )
😔 No documentation found.
public Span<T>.Enumerator GetEnumerator( )
😔 No documentation found.
public static Span<T> op_Implicit( ArraySegment<T> segment )
😔 No documentation found.
public static Span<T> op_Implicit( T[] array )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public static bool op_Inequality( Span<T> left, Span<T> right )
😔 No documentation found.
public bool TryCopyTo( Span<T> destination )
😔 No documentation found.
public ref T Item { get; }
😔 No documentation found.