-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add SequenceReader<T> #33288
Add SequenceReader<T> #33288
Changes from all commits
82930ec
0910977
021075d
d287daf
4d75684
70ef6d9
bb408c8
0064326
10443a0
b221ba0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,7 +97,6 @@ public static void Reverse<T>(this System.Span<T> span) { } | |
| private readonly object _dummy; | ||
| private readonly int _dummyPrimitive; | ||
| public SequencePosition(object @object, int integer) { throw null; } | ||
| [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did this end up getting removed? I would revert this change, build the ref and src, and then run the generate command from within the ref directory. Please let me know if you are still seeing such side effects/unintended changes.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The build target did it.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Manually added them back for now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Plz revert. |
||
| public override bool Equals(object obj) { throw null; } | ||
| public bool Equals(System.SequencePosition other) { throw null; } | ||
| [System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))] | ||
|
|
@@ -184,6 +183,49 @@ public partial struct Enumerator | |
| public bool MoveNext() { throw null; } | ||
| } | ||
| } | ||
| public static partial class SequenceReaderExtensions | ||
| { | ||
| public static bool TryReadBigEndian(this ref System.Buffers.SequenceReader<byte> reader, out short value) { throw null; } | ||
| public static bool TryReadBigEndian(this ref System.Buffers.SequenceReader<byte> reader, out int value) { throw null; } | ||
| public static bool TryReadBigEndian(this ref System.Buffers.SequenceReader<byte> reader, out long value) { throw null; } | ||
| public static bool TryReadLittleEndian(this ref System.Buffers.SequenceReader<byte> reader, out short value) { throw null; } | ||
| public static bool TryReadLittleEndian(this ref System.Buffers.SequenceReader<byte> reader, out int value) { throw null; } | ||
| public static bool TryReadLittleEndian(this ref System.Buffers.SequenceReader<byte> reader, out long value) { throw null; } | ||
| } | ||
| public ref partial struct SequenceReader<T> where T : unmanaged, System.IEquatable<T> | ||
|
JeremyKuhne marked this conversation as resolved.
|
||
| { | ||
| public SequenceReader(System.Buffers.ReadOnlySequence<T> buffer) { throw null; } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regenerate based on new sources so that arg names match. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This still needs fixing.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops, sorry, missed this comment. I'll fix shortly. |
||
| public long Consumed { get { throw null; } } | ||
|
JeremyKuhne marked this conversation as resolved.
|
||
| public System.ReadOnlySpan<T> CurrentSpan { get { throw null; } } | ||
| public int CurrentSpanIndex { get { throw null; } } | ||
| public bool End { get { throw null; } } | ||
| public long Length { get { throw null; } } | ||
| public System.SequencePosition Position { get { throw null; } } | ||
| public long Remaining { get { throw null; } } | ||
| public System.Buffers.ReadOnlySequence<T> Sequence { get { throw null; } } | ||
| public System.ReadOnlySpan<T> UnreadSpan { get { throw null; } } | ||
| public void Advance(long count) { } | ||
| public long AdvancePast(T value) { throw null; } | ||
| public long AdvancePastAny(System.ReadOnlySpan<T> values) { throw null; } | ||
| public long AdvancePastAny(T value0, T value1) { throw null; } | ||
| public long AdvancePastAny(T value0, T value1, T value2) { throw null; } | ||
| public long AdvancePastAny(T value0, T value1, T value2, T value3) { throw null; } | ||
| public bool IsNext(System.ReadOnlySpan<T> next, bool advancePast = false) { throw null; } | ||
| public bool IsNext(T next, bool advancePast = false) { throw null; } | ||
| public void Rewind(long count) { } | ||
| public bool TryAdvanceTo(T delimiter, bool advancePastDelimiter = true) { throw null; } | ||
| public bool TryAdvanceToAny(System.ReadOnlySpan<T> delimiters, bool advancePastDelimiter = true) { throw null; } | ||
| public bool TryCopyTo(System.Span<T> destination) { throw null; } | ||
| public bool TryPeek(out T value) { throw null; } | ||
| public bool TryRead(out T value) { throw null; } | ||
| public bool TryReadTo(out System.Buffers.ReadOnlySequence<T> sequence, System.ReadOnlySpan<T> delimiter, bool advancePastDelimiter = true) { throw null; } | ||
| public bool TryReadTo(out System.Buffers.ReadOnlySequence<T> sequence, T delimiter, bool advancePastDelimiter = true) { throw null; } | ||
| public bool TryReadTo(out System.Buffers.ReadOnlySequence<T> sequence, T delimiter, T delimiterEscape, bool advancePastDelimiter = true) { throw null; } | ||
| public bool TryReadTo(out System.ReadOnlySpan<T> span, T delimiter, bool advancePastDelimiter = true) { throw null; } | ||
| public bool TryReadTo(out System.ReadOnlySpan<T> span, T delimiter, T delimiterEscape, bool advancePastDelimiter = true) { throw null; } | ||
| public bool TryReadToAny(out System.Buffers.ReadOnlySequence<T> sequence, System.ReadOnlySpan<T> delimiters, bool advancePastDelimiter = true) { throw null; } | ||
| public bool TryReadToAny(out System.ReadOnlySpan<T> span, System.ReadOnlySpan<T> delimiters, bool advancePastDelimiter = true) { throw null; } | ||
| } | ||
| public readonly partial struct StandardFormat : System.IEquatable<System.Buffers.StandardFormat> | ||
| { | ||
| private readonly int _dummyPrimitive; | ||
|
|
@@ -382,6 +424,7 @@ public static void Write<T>(System.Span<byte> destination, ref T value) where T | |
| public static partial class SequenceMarshal | ||
| { | ||
| public static bool TryGetArray<T>(System.Buffers.ReadOnlySequence<T> sequence, out System.ArraySegment<T> segment) { throw null; } | ||
| public static bool TryRead<T>(ref System.Buffers.SequenceReader<byte> reader, out T value) where T : unmanaged { throw null; } | ||
| public static bool TryGetReadOnlyMemory<T>(System.Buffers.ReadOnlySequence<T> sequence, out System.ReadOnlyMemory<T> memory) { throw null; } | ||
| public static bool TryGetReadOnlySequenceSegment<T>(System.Buffers.ReadOnlySequence<T> sequence, out System.Buffers.ReadOnlySequenceSegment<T> startSegment, out int startIndex, out System.Buffers.ReadOnlySequenceSegment<T> endSegment, out int endIndex) { throw null; } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.