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.

public char Peek(int offset);

View source

Parameters

Name Type Description
offset Int32 The offset from the current position; can be negative to peek at preceding characters.

Returns

Char

The character at the offset.