System.Classes.TBinaryReader.PeekChar

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PeekChar: Integer; virtual;

C++

virtual int __fastcall PeekChar();

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TBinaryReader

Description

Returns the next character. PeekChar returns the next character from the stream, but does not advance the character's position. The method returns the char as an integer value. You can use this method to check whether TBinaryReader reached at the end of the stream. If there isn't a next character, the method returns -1.

See Also