getOffset

[ Function ]

public getOffset(): number;

Returns the current position of the read pointer.

Parameters

Name

Type

Description

-

-

-

Return value

Type

Description

number

The current position of the read pointer

Sample - JavaScript

var reader = new TcHmi.Base64BinaryReader('KgA=');
var result1 = reader.getOffset(); // 0
var result2 = reader.readInt16();
var result3 = reader.getOffset(); // 2
getOffset 1:

Available from version 1.10