writeUInt16
[ Function ]
public writeUInt16(value: number): this;
Encodes an unsigned integer with a value range from 0 to 65,535 in two bytes and appends them 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.writeUInt16(54321).getEncodedString(); // 'MdQ='
Available from version 1.10 |