|
Terraria v1.4.4.9
Terraria source code documentation
|
Classes | |
| struct | Enumerator |
Static Public Member Functions | |
| static int | ArrayToSequenceEnd (int endIndex) |
| static int | MemoryManagerToSequenceStart (int startIndex) |
| static int | StringToSequenceStart (int startIndex) |
| static int | StringToSequenceEnd (int endIndex) |
Static Public Attributes | |
| static readonly ReadOnlySequence< T > | Empty = new ReadOnlySequence<T>(Array.Empty<T>()) |
Package Functions | |
| bool | TryGetBuffer (in SequencePosition position, out ReadOnlyMemory< T > memory, out SequencePosition next) |
| SequencePosition | Seek (long offset, System.ExceptionArgument exceptionArgument=System.ExceptionArgument.offset) |
| bool | TryGetReadOnlySequenceSegment ([NotNullWhen(true)] out ReadOnlySequenceSegment< T > startSegment, out int startIndex, [NotNullWhen(true)] out ReadOnlySequenceSegment< T > endSegment, out int endIndex) |
| bool | TryGetArray (out ArraySegment< T > segment) |
| bool | TryGetString ([NotNullWhen(true)] out string text, out int start, out int length) |
| void | GetFirstSpan (out ReadOnlySpan< T > first, out SequencePosition next) |
Properties | |
| long | Length [get] |
| bool | IsEmpty [get] |
| bool | IsSingleSegment [get] |
| ReadOnlyMemory< T > | First [get] |
| ReadOnlySpan< T > | FirstSpan [get] |
| SequencePosition | Start [get] |
| SequencePosition | End [get] |
Private Member Functions | |
| ReadOnlySequence (object startSegment, int startIndexAndFlags, object endSegment, int endIndexAndFlags) | |
| ReadOnlyMemory< T > | GetFirstBuffer () |
| ReadOnlyMemory< T > | GetFirstBufferSlow (object startObject, bool isMultiSegment) |
| ReadOnlySpan< T > | GetFirstSpan () |
| ReadOnlySpan< T > | GetFirstSpanSlow (object startObject, bool isMultiSegment) |
| SequencePosition | Seek (in SequencePosition start, long offset) |
| void | BoundsCheck (in SequencePosition position, bool positionIsNotNull) |
| void | BoundsCheck (uint sliceStartIndex, object sliceStartObject, uint sliceEndIndex, object sliceEndObject) |
| SequenceType | GetSequenceType () |
| ReadOnlySequence< T > | SliceImpl (in SequencePosition start, in SequencePosition end) |
| ReadOnlySequence< T > | SliceImpl (in SequencePosition start) |
| long | GetLength () |
Static Private Member Functions | |
| static SequencePosition | SeekMultiSegment (ReadOnlySequenceSegment< T > currentSegment, object endObject, int endIndex, long offset, System.ExceptionArgument argument) |
| static SequencePosition | GetEndPosition (ReadOnlySequenceSegment< T > startSegment, object startObject, int startIndex, object endObject, int endIndex, long length) |
| static int | GetIndex (int Integer) |
| static bool | InRange (uint value, uint start, uint end) |
| static bool | InRange (ulong value, ulong start, ulong end) |
| static ReadOnlySpan< T > | GetFirstSpanSlow (object startObject, int startIndex, int endIndex, bool hasMultipleSegments) |
Private Attributes | |
| readonly object | _startObject |
| readonly object | _endObject |
| readonly int | _startInteger |
| readonly int | _endInteger |
Definition at line 11 of file ReadOnlySequence.cs.