writeSByte
[ Function ]
public writeSByte(value: number): this;
Encodes a signed integer with a value range of -128 to 127 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();
writer.writeSByte(127).writeSByte(-128);
var result1 = writer.getEncodedString(); // 'f4A='
Available from version 1.10 |