[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TBinaryObjectReader

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Driver class descendant which reads component data stored in binary format.

Declaration

Source position: classesh.inc line 1266

type TBinaryObjectReader = class(TAbstractObjectReader)

public

  constructor Create();

  

Creates a new binary data reader instance.

  destructor Destroy; override;

  

Destroys the binary data reader.

  function NextValue; override;

  

Return the type of the next value.

  function ReadValue; override;

  

Read the next value in the stream

  procedure BeginRootComponent; override;

  

Start reading the root component.

  procedure BeginComponent(); override;

  

Start reading a component.

  function BeginProperty; override;

  

Start reading a property.

  procedure Read(); override;

  

Read raw data from stream

  procedure ReadBinary(); override;

  

Start reading a binary value.

  function ReadFloat; override;

  

Read a float value

  function ReadSingle; override;

  

Read a single-size float value

  function ReadDate; override;

  

Read a date.

  function ReadCurrency; override;

  

Read a currency value from the stream.

  function ReadIdent(); override;

  

Read an identifier

  function ReadInt8; override;

  

Read an 8-bits integer.

  function ReadInt16; override;

  

Read a 16-bits integer.

  function ReadInt32; override;

  

Read a 32-bits integer.

  function ReadInt64; override;

  

Read a 64-bits integer.

  function ReadSet(); override;

  

Read a set

  procedure ReadSignature; override;

  

Reads the filer signature

  function ReadStr; override;

  

Read a short string

  function ReadString(); override;

  

Read a string

  function ReadWideString; override;

  

Read a widestring value from the stream.

  function ReadUnicodeString; override;

  

Read a Unicode string value

  procedure SkipComponent(); override;

  

Skip a component's data

  procedure SkipValue; override;

  

Skip a value's data

end;

Inheritance

TBinaryObjectReader

  

Driver class descendant which reads component data stored in binary format.

|

TAbstractObjectReader

  

Abstract driver class to read stored component data.

|

TObject

Description

The TBinaryObjectReader class reads component data stored in binary form in a file. For this, it overrides or implements all abstract methods from TAbstractObjectReader. No new functionality is added by this class, it is a driver class for the streaming system.

It should never be necessary to create an instance of this class directly. Instead, the TStream.WriteComponent call should be used.

See also

TAbstractObjectReader

  

Abstract driver class to read stored component data.

TBinaryObjectWriter

  

Driver class which stores component data in binary form.


Documentation generated on: Jun 22 2020