Skip to content

SourceReader.Peek Method ​

Definition ​

Returns the character at the specified offset from the current position, or the NUL character '\0' if the offset is outside the file.

c#
public char Peek(int offset);

View source

Parameters ​

NameTypeDescription
offsetInt32The offset from the current position; can be negative to peek at preceding characters.

Returns ​

Char

The character at the offset.