readInt32

[ Function ]

public readInt32(): number;

Reads four bytes and interprets them as a signed integer with a value range between ‑2,147,483,648 and 2,147,483,647. The read pointer is advanced by four bytes.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

number

The read Int32 value

Sample - JavaScript

var reader = new TcHmi.Base64BinaryReader('////fwAAAIA=');
var result1 = reader.readInt32(); // 2147483647
var result2 = reader.readInt32(); // -2147483648
readInt32 1:

Available from version 1.10