Pot.ArrayBufferoid.prototype.tell

{Number} Pot.ArrayBufferoid.prototype.tell ()

Pot.js で利用可能。 PotLite.js では利用できません。

ストリーム中の現在の位置を取得します。

Pot.ArrayBufferoid をストリームとして利用する際の、現在の位置を取得します。

ストリーム中の現在の位置が返ります。

var buffer = new Pot.ArrayBufferoid([1, 2, 3, 4, 5]);
Pot.debug(buffer.tell());  // 0
buffer.seek(1);
Pot.debug(buffer.tell());  // 1
Pot.debug(buffer.read(1)); // [2]
buffer.seek(3);
Pot.debug(buffer.tell());  // 3
Pot.debug(buffer.read(2)); // [4, 5]