SequenceReader<T>.TryPeek Method

Definition

Overloads

TryPeek(T)

Peeks at the next value without advancing the reader.

TryPeek(Int64, T)

Peeks at the next value at the specified offset without advancing the reader.

TryPeek(T)

Source:
SequenceReader.cs
Source:
SequenceReader.cs
Source:
SequenceReader.cs

Peeks at the next value without advancing the reader.

public:
 bool TryPeek([Runtime::InteropServices::Out] T % value);
public readonly bool TryPeek (out T value);
member this.TryPeek : 'T -> bool
Public Function TryPeek (ByRef value As T) As Boolean

Parameters

value
T

The next value, or the default value if at the end of the reader.

Returns

true if the reader is not at its end and the peek operation succeeded; false if at the end of the reader.

Applies to

TryPeek(Int64, T)

Source:
SequenceReader.cs
Source:
SequenceReader.cs
Source:
SequenceReader.cs

Peeks at the next value at the specified offset without advancing the reader.

public:
 bool TryPeek(long offset, [Runtime::InteropServices::Out] T % value);
public readonly bool TryPeek (long offset, out T value);
member this.TryPeek : int64 * 'T -> bool
Public Function TryPeek (offset As Long, ByRef value As T) As Boolean

Parameters

offset
Int64

The offset from current position.

value
T

The next value, or the default value if at the end of the reader.

Returns

true if the reader is not at its end and the peek operation succeeded; false if at the end of the reader.

Applies to