writeInt32

[ Function ]

public writeInt32(value: number): this;

Encodes a signed integer with a value range of -2,147,483,648 to 2,147,483,647 in four bytes and appends them to the data.

Parameter

Name

Type

Description

value

number

The value to be written

Return value

Type

Description

Base64BinaryWriter

This method returns its parent object to allow concatenation of method calls.

Sample - JavaScript

var writer = new TcHmi.Base64BinaryWriter();
writer.writeInt32(2147483647).writeInt32(-2147483648);
var result1 = writer.getEncodedString(); // '////fwAAAIA='
writeInt32 1:

Available from version 1.10