Show / Hide Table of Contents

Struct ReadOnlyArraySegment<T>

Implements
IReadOnlyList<T>
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AssetRipper.Assets.Generics
Assembly: AssetRipper.Assets.dll
Syntax
public readonly struct ReadOnlyArraySegment<T>
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

ReadOnlyArraySegment(T[])

Declaration
public ReadOnlyArraySegment(T[] array)
Parameters
Type Name Description
T[] array
| Improve this Doc View Source

ReadOnlyArraySegment(T[], Int32, Int32)

Declaration
public ReadOnlyArraySegment(T[] array, int offset, int count)
Parameters
Type Name Description
T[] array
System.Int32 offset
System.Int32 count

Properties

| Improve this Doc View Source

Count

Declaration
public readonly int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Empty

Declaration
public static readonly ReadOnlyArraySegment<T> Empty { get; }
Property Value
Type Description
ReadOnlyArraySegment<T>
| Improve this Doc View Source

Item[Int32]

Declaration
public readonly T this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
T

Methods

| Improve this Doc View Source

Equals(ReadOnlyArraySegment<T>)

Declaration
public readonly bool Equals(ReadOnlyArraySegment<T> obj)
Parameters
Type Name Description
ReadOnlyArraySegment<T> obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override readonly bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetEnumerator()

Declaration
public readonly ArraySegment<T>.Enumerator GetEnumerator()
Returns
Type Description
ArraySegment.Enumerator<>
| Improve this Doc View Source

GetHashCode()

Declaration
public override readonly int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

Slice(Int32)

Declaration
public readonly ReadOnlyArraySegment<T> Slice(int index)
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
ReadOnlyArraySegment<T>
| Improve this Doc View Source

Slice(Int32, Int32)

Declaration
public readonly ReadOnlyArraySegment<T> Slice(int index, int count)
Parameters
Type Name Description
System.Int32 index
System.Int32 count
Returns
Type Description
ReadOnlyArraySegment<T>
| Improve this Doc View Source

ToArray()

Declaration
public readonly T[] ToArray()
Returns
Type Description
T[]

Operators

| Improve this Doc View Source

Equality(ReadOnlyArraySegment<T>, ReadOnlyArraySegment<T>)

Declaration
public static bool operator ==(ReadOnlyArraySegment<T> a, ReadOnlyArraySegment<T> b)
Parameters
Type Name Description
ReadOnlyArraySegment<T> a
ReadOnlyArraySegment<T> b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Implicit(T[] to ReadOnlyArraySegment<T>)

Declaration
public static implicit operator ReadOnlyArraySegment<T>(T[] array)
Parameters
Type Name Description
T[] array
Returns
Type Description
ReadOnlyArraySegment<T>
| Improve this Doc View Source

Implicit(ArraySegment<T> to ReadOnlyArraySegment<T>)

Declaration
public static implicit operator ReadOnlyArraySegment<T>(ArraySegment<T> segment)
Parameters
Type Name Description
ArraySegment<T> segment
Returns
Type Description
ReadOnlyArraySegment<T>
| Improve this Doc View Source

Implicit(ReadOnlyArraySegment<T> to ReadOnlySpan<T>)

Declaration
public static implicit operator ReadOnlySpan<T>(ReadOnlyArraySegment<T> segment)
Parameters
Type Name Description
ReadOnlyArraySegment<T> segment
Returns
Type Description
ReadOnlySpan<T>
| Improve this Doc View Source

Inequality(ReadOnlyArraySegment<T>, ReadOnlyArraySegment<T>)

Declaration
public static bool operator !=(ReadOnlyArraySegment<T> a, ReadOnlyArraySegment<T> b)
Parameters
Type Name Description
ReadOnlyArraySegment<T> a
ReadOnlyArraySegment<T> b
Returns
Type Description
System.Boolean

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
readonly IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

IReadOnlyList<>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾