writeByte

[ Function ]

public writeByte(value: number): this;

Encodes an unsigned integer with a value range from 0 to 255 in a byte and appends it 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();
var result1 = writer.writeByte(200).getEncodedString(); // 'yA=='
writeByte 1:

Available from version 1.10