System.Classes.TWriter.WriteSingle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure WriteSingle(const Value: Single);

C++

void __fastcall WriteSingle(const float Value);

Properties

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

Description

Writes the passed Single type floating-point Value to the writer's stream.

WriteSingle is used internally by the component streaming system to write Single type floating-point component properties to the writer object's stream. (Single corresponds to float in C++.)

WriteSingle first calls WriteValue(vaSingle) to write the value-type indicator and then calls Write to write the passed Single size Value.

WriteSingle advances the current position after the last written byte.

See Also