getLength

[ Function ]

public getLength(): number;

Returns the length of the data written so far in bytes.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

number

The number of bytes written so far

Sample - JavaScript

var writer = new TcHmi.Base64BinaryWriter(TcHmi.Endianness.LittleEndian, 20);
writer.writeString('Hello, World!');
var result1 = writer.getLength(); // 13
getLength 1:

Available from version 1.10