struct Span<T>

in global :: System

Provides a type- and memory-safe representation of a contiguous region of arbitrary memory.

  • T The 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.

  • pointer A pointer to the starting address of a specified number of elements in memory.
  • length The 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.

  • obj Not 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.

  • start The 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.

  • start The index at which to begin this slice.
  • length The 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.