Noble Connect
Add relays and punchthrough to Mirror or UNet
NobleConnect.ImmutableArraySegment< T > Struct Template Reference

Like ArraySegment, but immutable, and backed by an ImmutableArray More...

Public Member Functions

 ImmutableArraySegment (T[] array, int offset, int count)
 Create an ImmutableArray segment from the provided array, offset, and count More...
 

Public Attributes

readonly ImmutableArray< T > Array
 The immutable backing array More...
 
readonly int Offset
 The offset into the array More...
 
readonly int Count
 The length of the segment More...
 

Detailed Description

Like ArraySegment, but immutable, and backed by an ImmutableArray

Template Parameters
T

Constructor & Destructor Documentation

◆ ImmutableArraySegment()

NobleConnect.ImmutableArraySegment< T >.ImmutableArraySegment ( T[]  array,
int  offset,
int  count 
)

Create an ImmutableArray segment from the provided array, offset, and count

Parameters
array
offset
count

Member Data Documentation

◆ Array

The immutable backing array

◆ Count

readonly int NobleConnect.ImmutableArraySegment< T >.Count

The length of the segment

◆ Offset

readonly int NobleConnect.ImmutableArraySegment< T >.Offset

The offset into the array