Lines Matching refs:length

1 …n n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return…
122 var chunks, dataHandler, length;
123 length = 0;
126 length += chunk.length;
131 buf = new Float32Array(length);
133 for (_i = 0, _len = chunks.length; _i < _len; _i++) {
136 offset += chunk.length;
198 buf = new Float32Array(buffer.length);
199 for (i = _i = 0, _len = buffer.length; _i < _len; i = ++_i) {
306 …__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in…
607 …this.data = new Uint8Array(input.buffer, input.byteOffset, input.length * input.BYTES_PER_ELEMENT);
613 this.length = this.data.length;
626 AVBuffer.prototype.slice = function(position, length) { argument
627 if (length == null) {
628 length = this.length;
630 if (position === 0 && length >= this.length) {
633 return new AVBuffer(this.data.subarray(position, position + length));
716 this.availableBytes += buffer.length;
723 this.availableBytes -= this.first.length;
738 this.availableBytes += this.first.length;
807 event = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
812 for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
894 while (this.list.first && this.localOffset >= this.list.first.length) {
895 this.localOffset -= this.list.first.length;
907 this.localOffset = this.list.first.length;
913 this.localOffset += this.list.first.length;
934 if (this.localOffset === this.list.first.length) {
952 if (buffer.length > offset) {
955 offset -= buffer.length;
1186 Stream.prototype.readBuffer = function(length) { argument
1188 result = AVBuffer.allocate(length);
1190 for (i = _i = 0; _i < length; i = _i += 1) {
1196 Stream.prototype.peekBuffer = function(offset, length) { argument
1201 result = AVBuffer.allocate(length);
1203 for (i = _i = 0; _i < length; i = _i += 1) {
1209 Stream.prototype.readSingleBuffer = function(length) { argument
1211 result = this.list.first.slice(this.localOffset, length);
1212 this.advance(result.length);
1216 Stream.prototype.peekSingleBuffer = function(offset, length) { argument
1218 result = this.list.first.slice(this.localOffset + offset, length);
1222 Stream.prototype.readString = function(length, encoding) { argument
1226 return decodeString.call(this, 0, length, encoding, true);
1229 Stream.prototype.peekString = function(offset, length, encoding) { argument
1236 return decodeString.call(this, offset, length, encoding, false);
1239 decodeString = function(offset, length, encoding, advance) { argument
1242 nullEnd = length === null ? 0 : -1;
1243 if (length == null) {
1244 length = Infinity;
1246 end = offset + length;
1293 if (length < 2 || (bom = this.peekUInt16(offset)) === nullEnd) {
1698 high = this.seekPoints.length;
1711 if (high > this.seekPoints.length) {
1712 high = this.seekPoints.length;
1740 for (_i = 0, _len = formats.length; _i < _len; _i++) {
1839 this.len -= buffer.length;
2054 this.headerCache.size -= buffer.length;
2078 …__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in…
2115 for (_i = 0, _len = _ref.length; _i < _len; _i++) {
2168 while (this.stream.offset >= this.offsets[this.offsets.length - 1]) {
2410 for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
2422 … if (sttsIndex + 1 < this.track.stts.length && ++sttsSample === this.track.stts[sttsIndex].count) {
2427 … if (stscIndex + 1 < this.track.stsc.length && i + 1 === this.track.stsc[stscIndex + 1].first) {
2442 for (_i = 0, _len = _ref.length; _i < _len; _i++) {
2463 var bytes, chunkSize, length, numSamples, offset, sample, size, _i;
2468 if (this.tracks.length === 0) {
2489 length = 0;
2495 while (this.chunkIndex < this.track.chunkOffsets.length) {
2500 if (!this.stream.available(length + size)) {
2503 length += size;
2515 …if (this.stscIndex + 1 < this.track.stsc.length && this.chunkIndex + 1 === this.track.stsc[this.st…
2518 if (offset + length !== this.track.chunkOffsets[this.chunkIndex]) {
2523 if (length > 0) {
2524 this.emit('data', this.stream.readBuffer(length));
2525 return this["break"] = this.chunkIndex === this.track.chunkOffsets.length;
2533 if (!(((_ref = this.track.chapterTracks) != null ? _ref.length : void 0) > 0)) {
2538 for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
2550 while (this.chapters.length < track.seekPoints.length) {
2551 point = track.seekPoints[this.chapters.length];
2570 …nextTimestamp = (_ref2 = (_ref3 = track.seekPoints[this.chapters.length + 1]) != null ? _ref3.time…
2779 this.len -= buffer.length;
2880 for (_i = 0, _len = devices.length; _i < _len; _i++) {
2934 if (this.writePosition < this.tail.length) {
2946 if (written < buffer.length) {
3164 return buffer.length;
3185 this.outputBuffer.length = sliceAmount;
3265 for (i = _j = 0, _ref = outputBuffer.length; _j < _ref; i = _j += 1) {
3329 for (i = _i = 0, _ref = buffer.length; _i < _ref; i = _i += 2) {
3362 for (i = _i = 0, _ref = buffer.length; _i < _ref; i = _i += 1) {
3544 while (frame && bufferOffset < buffer.length) {
3545 max = Math.min(frame.length - frameOffset, buffer.length - bufferOffset);
3549 if (frameOffset === frame.length) {
3555 for (_j = 0, _len = _ref.length; _j < _len; _j++) {
3618 if (this.buffers.length >= this.readyMark || this.ended) {
3628 if (this.buffers.length === 0) {
3636 this.buffers.length = 0;
3666 this.length = this.file.size;
3683 _this.offset += buf.length;
3686 if (_this.offset < _this.length) {
3693 if (_this.offset === _this.length) {
3706 return _this.emit('progress', (_this.offset + e.loaded) / _this.length * 100);
3715 endPos = Math.min(this.offset + this.chunkSize, this.length);
3760 if (this.length) {
3769 _this.length = parseInt(_this.xhr.getResponseHeader("Content-Length"));
3791 if (this.inflight || !this.length) {
3803 buf = new Uint8Array(txt.length);
3804 …for (i = _i = 0, _ref = txt.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i…
3809 _this.offset += buffer.length;
3811 if (_this.offset >= _this.length) {
3815 if (!(_this.offset >= _this.length)) {
3822 return _this.emit('progress', (_this.offset + event.loaded) / _this.length * 100);
3838 endPos = Math.min(this.offset + this.chunkSize, this.length);