Span<T>
Overview
Span is a writable span (block of memory that could be an array or pointer) of a given size.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
- Ancestry: ValueType | Span<T>
constructor
constructor
Span<T>()
init()
Span<T>()
Sub New()
Parameters:
- aArray:
- aStart:
- aLength:
constructor (^T, Int32)
constructor(aPointer: ^T; aLength: Int32)
Span<T>(T* aPointer, Int32 aLength)
init(_ aPointer: UnsafeMutablePointer<T>, _ aLength: Int32)
Span<T>(T* aPointer, Int32 aLength)
Sub New(aPointer As Ptr(Of T), aLength As Int32)
Parameters:
- aPointer:
- aLength:
Data
Returns the data at a given offset.
property Data[i: Int32]: T read write;
T Data[Int32 i] { get; set; }
subscript Data(_ i: Int32) -> T { get{} set{} }
T Data[Int32 i] { __get; __set; }
Property Data(i As Int32) As T
Empty
Returns true if empty (count = 0).
property Empty: Boolean read;
Boolean Empty { get; }
var Empty: Boolean { get{} }
Boolean Empty { __get; }
ReadOnly Property Empty() As Boolean
Empty
Returns an empty span object.
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
Contains the length of this span.
property Length: Int32 read;
Int32 Length { get; }
var Length: Int32 { get{} }
Int32 Length { __get; }
ReadOnly Property Length() As Int32
Pointer
Returns a 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 this span. Slicing can only shrink, not grow the span.
Parameters:
- aStart:
Slice this span. Slicing can only shrink, not grow the span.
Parameters:
- aStart:
- aLength:
ToString virtual (declared in Object)
Gets the string representation of this method.
Data
Returns the data at a given offset.
property Data[i: Int32]: T read write;
T Data[Int32 i] { get; set; }
subscript Data(_ i: Int32) -> T { get{} set{} }
T Data[Int32 i] { __get; __set; }
Property Data(i As Int32) As T
Empty
Returns true if empty (count = 0).
property Empty: Boolean read;
Boolean Empty { get; }
var Empty: Boolean { get{} }
Boolean Empty { __get; }
ReadOnly Property Empty() As Boolean
Length
Contains the length of this span.
property Length: Int32 read;
Int32 Length { get; }
var Length: Int32 { get{} }
Int32 Length { __get; }
ReadOnly Property Length() As Int32
Pointer
Returns a 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 object.
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
Span<T>()
init()
Span<T>()
Sub New()
Parameters:
- aArray:
- aStart:
- aLength:
constructor (^T, Int32)
constructor(aPointer: ^T; aLength: Int32)
Span<T>(T* aPointer, Int32 aLength)
init(_ aPointer: UnsafeMutablePointer<T>, _ aLength: Int32)
Span<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 this span. Slicing can only shrink, not grow the span.
Parameters:
- aStart:
Slice this span. Slicing can only shrink, not grow the span.
Parameters:
- aStart:
- aLength:
ToString virtual (declared in Object)
Gets the string representation of this method.