Lines Matching refs:bytes
880 Stream.prototype.available = function(bytes) { argument
881 return bytes <= this.list.availableBytes - this.localOffset;
888 Stream.prototype.advance = function(bytes) { argument
889 if (!this.available(bytes)) {
892 this.localOffset += bytes;
893 this.offset += bytes;
901 Stream.prototype.rewind = function(bytes) { argument
902 if (bytes > this.offset) {
909 this.localOffset -= bytes;
910 this.offset -= bytes;
961 Stream.prototype.read = function(bytes, littleEndian) { argument
967 for (i = _i = 0; _i < bytes; i = _i += 1) {
971 for (i = _j = _ref = bytes - 1; _j >= 0; i = _j += -1) {
977 Stream.prototype.peek = function(bytes, offset, littleEndian) { argument
983 for (i = _i = 0; _i < bytes; i = _i += 1) {
987 for (i = _j = 0; _j < bytes; i = _j += 1) {
988 uint8[bytes - i - 1] = this.peekUInt8(offset + i);
1892 var bytes, dataSize, encoding, size;
1914 bytes = this.format.bitsPerChannel / 8;
1915 …this.emit('duration', dataSize / bytes / this.format.channelsPerFrame / this.format.sampleRate * 1…
2463 var bytes, chunkSize, length, numSamples, offset, sample, size, _i;
2469 bytes = Math.min(this.stream.remainingBytes(), this.len);
2470 this.stream.advance(bytes);
2471 this.len -= bytes;
2735 var buffer, bytes, encoding;
2774 bytes = this.format.bitsPerChannel / 8;
2775 …this.emit('duration', this.len / bytes / this.format.channelsPerFrame / this.format.sampleRate * 1…