DataReader

The TcAdsWebService.DataReader object can be used to read data from a Base64 encoded binary data string recieved from the TcAdsWebService.

TcAdsWebService.DataReader(
    data
);

Parameters

data

Type: String
Base64 encoded binary data.

Properties

Name

Description

offset

Actual position in data buffer.

decodedData

Binary string data buffer.

Functions

Name

Description

readSINT

Reads 1 byte from the decodedData property and returns it as signed 1 byte numeric value.

readINT

Reads 2 byte from the decodedData property and returns it as signed 2 byte numeric value.

readDINT

Reads 4 byte from the decodedData property and returns it as signed 4 byte numeric value.

readBYTE

Reads 1 byte from the decodedData property and returns it as unsigned 1 byte numeric value.

readWORD

Reads 2 bytes from the decodedData property and returns it as unsigned 2 byte numeric value.

readDWORD

Reads 4 bytes from the decodedData property and returns it as unsigned 4 byte numeric value.

readBOOL

Reads 1 byte from the decodedData property and returns it as boolean value.

readString

Reads a string from the decodedData property.

readREAL

Reads 4 byte from the decodedData property and returns it as 4 byte floating point number value.

readLREAL

Reads 8 byte from the decodedData property and returns it as 8 byte floating point number

getTypeString

Returns an object identifier string.