readInt16

[ Function ]

public readInt16(): number;

Reads two bytes and interprets them as a signed integer with a value range between -32,768 and 32,767. The read pointer is advanced by two bytes.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

number

The read Int16 value

Sample - JavaScript

var reader = new TcHmi.Base64BinaryReader('/38AgA==');
var result1 = reader.readInt16(); // 32767
var result2 = reader.readInt16(); // -32768
readInt16 1:

Available from version 1.10