System.Classes.TReader.ReadInt64

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadInt64: Int64;

C++

__int64 __fastcall ReadInt64();

Properties

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

Description

Reads and returns a 64-bit integer from the reader object's stream.

ReadInt64 is a helper method used by other reader methods to read a tagged 64-bit integer Int64 value at the current reader Position.

ReadInt64 calls ReadValue to check whether the value-type indicator is vaInt64, and then ReadInt64 calls Read and returns the Int64 integer value. Otherwise, ReadInt64 returns the stream position back before the value-type indicator, calls ReadInteger, in case the value was saved in another integer format and returns the retrieved value.

ReadInt64 advances the reader Position after the last byte it has read.

See Also