Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#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 1770

type TBinaryObjectReader = class(TAbstractObjectReader)

public

type

  TBOVersion = (

  boVersion0,

  boVersion1

);

public

const

  UnitnameSeparator = '/'

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 ReadPrefix(); override;

  procedure BeginRootComponent; override;

  

Start reading the root component.

  procedure BeginComponent();

  

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 ReadDouble; override;

  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.

  property Version: TBOVersion; [r]

end;

Inheritance

TBinaryObjectReader

  

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

|

TAbstractObjectReader

  

Abstract driver class to read stored component data.

|

TObject

  

Base class of all classes.

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: Dec 24 2024