setOffset

[ Function ]

public setOffset(offset: number): void;

Sets the position of the read pointer.

Parameter

Name

Type

Description

offset

number

The new position of the read pointer

Return value

Type

Description

void

No return value

Sample - JavaScript

var reader = new TcHmi.Base64BinaryReader('SGVsbG8sIFdvcmxkIQ==');
reader.setOffset(7);
var result1 = reader.readString(); // 'World!'
setOffset 1:

Available from version 1.10