Skip to content

TAbstractObjectReader.ReadIdent

Read an identifier from the stream.

Declaration

Source position: classesh.inc line 1874

public 
function TAbstractObjectReader.ReadIdent(ValueType: TValueType)
                                         : RawByteString;  virtual
                                        ;  abstract;

Description

ReadIdent is called by the streaming system if it expects to read an identifier of type ValueType from the stream after a call to ReadValue returned vaIdent. The identifier should be returned as a string. Note that in some cases the identifier does not actually have to be in the stream. The following table indicates which identifiers must actually be read:

ValueType Expected value
vaIdent Read from stream.
vaNil 'Nil'. This does not have to be read from the stream.
vaFalse 'False'. This does not have to be read from the stream.
vaTrue 'True'. This does not have to be read from the stream.
vaNull 'Null'. This does not have to be read from the stream.

See also

Name Description
TAbstractObjectReader.ReadFloat Read a float value from the stream.
TAbstractObjectReader.ReadDate Read a date value from the stream.
TAbstractObjectReader.ReadSingle Read a single (real-type) value from the stream.
TAbstractObjectReader.ReadInt8 Read an 8-bit integer from the stream.
TAbstractObjectReader.ReadInt16 Read a 16-bit integer from the stream.
TAbstractObjectReader.ReadInt32 Read a 32-bit integer from the stream.
TAbstractObjectReader.ReadInt64 Read a 64-bit integer from the stream.
TabstractObjectReader.ReadSet Reads a set from the stream.
TabstractObjectReader.ReadStr Read a shortstring from the stream.
TabstractObjectReader.ReadString Read a string of type StringType from the stream.