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 | The value to be written |
Return value
Type | Description |
---|---|
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=='
Available from version 1.10 |