readBoolean

[ Function ]

public readBoolean(): boolean;

Reads a byte and interprets it as a Boolean value. A byte is considered false if it has the value 0 and true in all other cases. The read pointer is advanced by one byte.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

boolean

The read Boolean value

Sample - JavaScript

var reader = new TcHmi.Base64BinaryReader('AQA=');
var result1 = reader.readBoolean(); // true
var result2 = reader.readBoolean(); // false
readBoolean 1:

Available from version 1.10