System.Classes.TReader.ReadDouble
Delphi
function ReadDouble: Double;
C++
double __fastcall ReadDouble();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TReader |
Description
Reads and returns a Double floating-point number from the reader object's stream.
ReadDouble is a helper method used by other reader methods to read a Double floating-point value at the current reader Position.
ReadDouble calls ReadValue to check whether the value-type indicator is vaDouble
, then ReadDouble calls Read and returns the retrieved Double value. Otherwise ReadDouble returns the stream position back before the value-type indicator, calls ReadInt64, and returns the retrieved value.
ReadDouble advances the reader Position after the last byte it has read.