ImmutableSpan<T>

Overview

Readonly spam class.

Location

 

constructor

Creates an empty span.

 

constructor

 

ImmutableSpan<T>()

 

init()

 

ImmutableSpan<T>()

 

Sub New()

constructor (^T, Int32)

Creates a new span pointing to this value, for length aLength.

 

constructor(aPointer: ^T; aLength: Int32)

 

ImmutableSpan<T>(T* aPointer, Int32 aLength)

 

init(_ aPointer: UnsafeMutablePointer<T>, _ aLength: Int32)

 

ImmutableSpan<T>(T* aPointer, Int32 aLength)

 

Sub New(aPointer As ^T, aLength As Int32)

Parameters:

  • aPointer:
  • aLength:

constructor (array of T, Int32, Int32)

Creates a new span pointing to this array from offset aStart, for length aLength.

 

constructor(aArray: array of T; aStart: Int32; aLength: Int32)

 

ImmutableSpan<T>(T[] aArray, Int32 aStart, Int32 aLength)

 

init(_ aArray: T..., _ aStart: Int32, _ aLength: Int32)

 

ImmutableSpan<T>(T[] aArray, Int32 aStart, Int32 aLength)

 

Sub New(aArray As T(), aStart As Int32, aLength As Int32)

Parameters:

  • aArray:
  • aStart:
  • aLength:

Data

Access the span by index.

 

property Data[i: Int32]: T read;

 

T Data[Int32 i] { get; }

 

subscript Data(_ i: Int32) -> T { get{} }

 

T Data[Int32 i] { __get; }

 

ReadOnly Property Data(i As Int32) As T

Empty

Returns true if empty.

 

property Empty: Boolean read;

 

Boolean Empty { get; }

 

var Empty: Boolean { get{} }

 

Boolean Empty { __get; }

 

ReadOnly Property Empty() As Boolean

Empty

Returns an empty span.

 

class property Empty: Span<T> read;

 

class Span<T> Empty { get; }

 

static var Empty: Span<T> { get{} }

 

class Span<T> Empty { __get; }

 

Shared ReadOnly Property Empty() As Span<T>

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Length

Returns the length of a span.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Int32 Length { __get; }

 

ReadOnly Property Length() As Int32

Pointer

Contains the pointer to the first element.

 

property Pointer: ^T read;

 

T* Pointer { get; }

 

var Pointer: UnsafeMutablePointer<T> { get{} }

 

T* Pointer { __get; }

 

ReadOnly Property Pointer() As ^T

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

Slice a span, returns a new span. Fails if the length or start exceeds the original span.

 

method Slice(aStart: Int32): ImmutableSpan<T>

 

ImmutableSpan<T> Slice(Int32 aStart)

 

func Slice(_ aStart: Int32) -> ImmutableSpan<T>

 

ImmutableSpan<T> Slice(Int32 aStart)

 

Function Slice(aStart As Int32) As ImmutableSpan<T>

Parameters:

  • aStart:

Slice a span, returns a new span. Fails if the length or start exceeds the original span.

 

method Slice(aStart: Int32; aLength: Int32): ImmutableSpan<T>

 

ImmutableSpan<T> Slice(Int32 aStart, Int32 aLength)

 

func Slice(_ aStart: Int32, _ aLength: Int32) -> ImmutableSpan<T>

 

ImmutableSpan<T> Slice(Int32 aStart, Int32 aLength)

 

Function Slice(aStart As Int32, aLength As Int32) As ImmutableSpan<T>

Parameters:

  • aStart:
  • aLength:

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

 

Data

Access the span by index.

 

property Data[i: Int32]: T read;

 

T Data[Int32 i] { get; }

 

subscript Data(_ i: Int32) -> T { get{} }

 

T Data[Int32 i] { __get; }

 

ReadOnly Property Data(i As Int32) As T

Empty

Returns true if empty.

 

property Empty: Boolean read;

 

Boolean Empty { get; }

 

var Empty: Boolean { get{} }

 

Boolean Empty { __get; }

 

ReadOnly Property Empty() As Boolean

Length

Returns the length of a span.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Int32 Length { __get; }

 

ReadOnly Property Length() As Int32

Pointer

Contains the pointer to the first element.

 

property Pointer: ^T read;

 

T* Pointer { get; }

 

var Pointer: UnsafeMutablePointer<T> { get{} }

 

T* Pointer { __get; }

 

ReadOnly Property Pointer() As ^T

Empty

Returns an empty span.

 

class property Empty: Span<T> read;

 

class Span<T> Empty { get; }

 

static var Empty: Span<T> { get{} }

 

class Span<T> Empty { __get; }

 

Shared ReadOnly Property Empty() As Span<T>

 

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

 

constructor

Creates an empty span.

 

constructor

 

ImmutableSpan<T>()

 

init()

 

ImmutableSpan<T>()

 

Sub New()

constructor (^T, Int32)

Creates a new span pointing to this value, for length aLength.

 

constructor(aPointer: ^T; aLength: Int32)

 

ImmutableSpan<T>(T* aPointer, Int32 aLength)

 

init(_ aPointer: UnsafeMutablePointer<T>, _ aLength: Int32)

 

ImmutableSpan<T>(T* aPointer, Int32 aLength)

 

Sub New(aPointer As ^T, aLength As Int32)

Parameters:

  • aPointer:
  • aLength:

constructor (array of T, Int32, Int32)

Creates a new span pointing to this array from offset aStart, for length aLength.

 

constructor(aArray: array of T; aStart: Int32; aLength: Int32)

 

ImmutableSpan<T>(T[] aArray, Int32 aStart, Int32 aLength)

 

init(_ aArray: T..., _ aStart: Int32, _ aLength: Int32)

 

ImmutableSpan<T>(T[] aArray, Int32 aStart, Int32 aLength)

 

Sub New(aArray As T(), aStart As Int32, aLength As Int32)

Parameters:

  • aArray:
  • aStart:
  • aLength:

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Slice a span, returns a new span. Fails if the length or start exceeds the original span.

 

method Slice(aStart: Int32): ImmutableSpan<T>

 

ImmutableSpan<T> Slice(Int32 aStart)

 

func Slice(_ aStart: Int32) -> ImmutableSpan<T>

 

ImmutableSpan<T> Slice(Int32 aStart)

 

Function Slice(aStart As Int32) As ImmutableSpan<T>

Parameters:

  • aStart:

Slice a span, returns a new span. Fails if the length or start exceeds the original span.

 

method Slice(aStart: Int32; aLength: Int32): ImmutableSpan<T>

 

ImmutableSpan<T> Slice(Int32 aStart, Int32 aLength)

 

func Slice(_ aStart: Int32, _ aLength: Int32) -> ImmutableSpan<T>

 

ImmutableSpan<T> Slice(Int32 aStart, Int32 aLength)

 

Function Slice(aStart As Int32, aLength As Int32) As ImmutableSpan<T>

Parameters:

  • aStart:
  • aLength:

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String