ImmutableSpan<T>
Overview
Readonly spam class.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
- Ancestry: ValueType | ImmutableSpan<T>
constructor
constructor
ImmutableSpan<T>()
init()
ImmutableSpan<T>()
Sub New()
Parameters:
- aArray:
- aStart:
- aLength:
constructor (^T, Int32)
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 Ptr(Of T), aLength As Int32)
Parameters:
- aPointer:
- 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)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
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 Ptr(Of T)
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
Slice (Int32): ImmutableSpan<T>
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 (Int32, Int32): ImmutableSpan<T>
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.
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 Ptr(Of T)
Empty
Returns an empty span.
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
constructor
constructor
ImmutableSpan<T>()
init()
ImmutableSpan<T>()
Sub New()
Parameters:
- aArray:
- aStart:
- aLength:
constructor (^T, Int32)
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 Ptr(Of T), aLength As Int32)
Parameters:
- aPointer:
- aLength:
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
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 (Int32): ImmutableSpan<T>
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 (Int32, Int32): ImmutableSpan<T>
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.