Lines Matching refs:byteLength
1497 if (a.byteLength !== b.byteLength) {
1501 for (var offset = 0; offset < a.byteLength; offset++) {
1511 if (a.byteLength !== b.byteLength) {
1515 …re(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.…
1519 …return buf1.byteLength === buf2.byteLength && compare(new Uint8Array(buf1), new Uint8Array(buf2)) …
3222 var size = Buffer.byteLength(val, encoding);
3237 this.length.encode(stream, Buffer.byteLength(val, encoding));
3806 var length = byteLength(string, encoding) | 0;
3828 return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
3833 if (byteOffset < 0 || array.byteLength < byteOffset) {
3836 if (array.byteLength < byteOffset + (length || 0)) {
3892 if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength);
3893 if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength);
3963 function byteLength(string, encoding) {
3968 return string.byteLength;
4007 Buffer.byteLength = byteLength;
4137 target = Buffer.from(target, target.offset, target.byteLength);
4563 Buffer.prototype.readUintLE = Buffer.prototype.readUIntLE = function readUIntLE(offset, byteLength,…
4565 byteLength = byteLength >>> 0;
4566 if (!noAssert) checkOffset(offset, byteLength, this.length);
4570 while (++i < byteLength && (mul *= 0x100)) {
4575 Buffer.prototype.readUintBE = Buffer.prototype.readUIntBE = function readUIntBE(offset, byteLength,…
4577 byteLength = byteLength >>> 0;
4579 checkOffset(offset, byteLength, this.length);
4581 var val = this[offset + --byteLength];
4583 while (byteLength > 0 && (mul *= 0x100)) {
4584 val += this[offset + --byteLength] * mul;
4637 Buffer.prototype.readIntLE = function readIntLE(offset, byteLength, noAssert) {
4639 byteLength = byteLength >>> 0;
4640 if (!noAssert) checkOffset(offset, byteLength, this.length);
4644 while (++i < byteLength && (mul *= 0x100)) {
4648 if (val >= mul) val -= Math.pow(2, 8 * byteLength);
4651 Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) {
4653 byteLength = byteLength >>> 0;
4654 if (!noAssert) checkOffset(offset, byteLength, this.length);
4655 var i = byteLength;
4662 if (val >= mul) val -= Math.pow(2, 8 * byteLength);
4743 …UintLE = Buffer.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength, noAssert) {
4746 byteLength = byteLength >>> 0;
4748 var maxBytes = Math.pow(2, 8 * byteLength) - 1;
4749 checkInt(this, value, offset, byteLength, maxBytes, 0);
4754 while (++i < byteLength && (mul *= 0x100)) {
4757 return offset + byteLength;
4759 …UintBE = Buffer.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength, noAssert) {
4762 byteLength = byteLength >>> 0;
4764 var maxBytes = Math.pow(2, 8 * byteLength) - 1;
4765 checkInt(this, value, offset, byteLength, maxBytes, 0);
4767 var i = byteLength - 1;
4773 return offset + byteLength;
4870 Buffer.prototype.writeIntLE = function writeIntLE(value, offset, byteLength, noAssert) {
4874 var limit = Math.pow(2, 8 * byteLength - 1);
4875 checkInt(this, value, offset, byteLength, limit - 1, -limit);
4881 while (++i < byteLength && (mul *= 0x100)) {
4887 return offset + byteLength;
4889 Buffer.prototype.writeIntBE = function writeIntBE(value, offset, byteLength, noAssert) {
4893 var limit = Math.pow(2, 8 * byteLength - 1);
4894 checkInt(this, value, offset, byteLength, limit - 1, -limit);
4896 var i = byteLength - 1;
4906 return offset + byteLength;
5181 function checkBounds(buf, offset, byteLength) {
5183 if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {
5184 boundsError(offset, buf.length - (byteLength + 1));
5187 function checkIntBI(value, min, max, buf, offset, byteLength) {
5191 if (byteLength > 3) {
5193 range = ">= 0" + n + " and < 2" + n + " ** " + (byteLength + 1) * 8 + n;
5195 …range = ">= -(2" + n + " ** " + ((byteLength + 1) * 8 - 1) + n + ") and < 2 ** " + ("" + ((byteLen…
5202 checkBounds(buf, offset, byteLength);
5625 if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
5634 if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
5645 var byteLength = toIndex(length);
5647 bytes: fill(Array(byteLength), 0),
5648 byteLength: byteLength
5650 if (!DESCRIPTORS) this.byteLength = byteLength;
5653 $DataView = function DataView(buffer, byteOffset, byteLength) {
5656 var bufferLength = getInternalState(buffer).byteLength;
5659 byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
5660 if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
5663 byteLength: byteLength,
5668 this.byteLength = byteLength;
8521 … typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
8527 var typedArrayByteLength = typedArray.byteLength;
18770 refBody.Params.Size = data.byteLength; // save some space when embedding the same file again
23128 exports.byteLength = byteLength
23167 function byteLength (b64) {
31340 var buffer, byteLength, length;
31343 byteLength = length * BYTES;
31344 buffer = new ArrayBuffer(byteLength);
31348 var $len = data.byteLength;
31351 byteLength = $len - byteOffset;
31352 if (byteLength < 0) throw RangeError(WRONG_LENGTH);
31354 byteLength = toLength($length) * BYTES;
31355 if (byteLength + byteOffset > $len) throw RangeError(WRONG_LENGTH);
31357 length = byteLength / BYTES;
31366 byteLength: byteLength,
53326 length: Buffer.byteLength(val.en, 'utf16le'),