/third_party/node/test/parallel/ |
D | test-buffer-bytelength.js | 15 () => Buffer.byteLength(...args), 26 assert.strictEqual(Buffer.byteLength('', undefined, true), -1); 37 assert.strictEqual(Buffer.byteLength(incomplete), 5); 39 assert.strictEqual(Buffer.byteLength(ascii), 3); 43 assert.strictEqual(Buffer.byteLength(buffer), 8); 47 assert.strictEqual(Buffer.byteLength(int8), 8); 49 assert.strictEqual(Buffer.byteLength(uint8), 8); 51 assert.strictEqual(Buffer.byteLength(uintc8), 2); 53 assert.strictEqual(Buffer.byteLength(int16), 16); 55 assert.strictEqual(Buffer.byteLength(uint16), 16); [all …]
|
D | test-fs-util-validateoffsetlength.js | 41 const byteLength = offset + length - 1; constant 43 () => validateOffsetLengthRead(offset, length, byteLength), 48 `It must be <= ${byteLength - offset}. Received ${length}` 61 const byteLength = 50; constant 63 () => validateOffsetLengthWrite(offset, length, byteLength), 68 `It must be <= ${byteLength}. Received ${offset}` 77 const byteLength = kIoMaxLength - 100; constant 79 () => validateOffsetLengthWrite(offset, length, byteLength), 84 `It must be <= ${byteLength - offset}. Received ${length}`
|
D | test-buffer-readuint.js | 108 [Infinity, -1].forEach((byteLength) => { 110 () => buffer[fn](0, byteLength), 114 `It must be >= 1 and <= 6. Received ${byteLength}` 118 [NaN, 1.01].forEach((byteLength) => { 120 () => buffer[fn](0, byteLength), 125 `It must be an integer. Received ${byteLength}`
|
D | test-buffer-writeuint.js | 147 [Infinity, -1].forEach((byteLength) => { 149 () => data[fn](23, 0, byteLength), 153 `It must be >= 1 and <= 6. Received ${byteLength}` 158 [NaN, 1.01].forEach((byteLength) => { 160 () => data[fn](42, 0, byteLength), 165 `It must be an integer. Received ${byteLength}`
|
/third_party/node/lib/internal/ |
D | buffer.js | 51 function checkBounds(buf, offset, byteLength) { argument 53 if (buf[offset] === undefined || buf[offset + byteLength] === undefined) 54 boundsError(offset, buf.length - (byteLength + 1)); 57 function checkInt(value, min, max, buf, offset, byteLength) { argument 61 if (byteLength > 3) { 63 range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`; 65 range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and ` + 66 `< 2${n} ** ${(byteLength + 1) * 8 - 1}${n}`; 73 checkBounds(buf, offset, byteLength); 167 function readUIntLE(offset, byteLength) { argument [all …]
|
/third_party/protobuf/js/experimental/runtime/kernel/ |
D | typed_arrays.js | 34 if (array1.byteLength !== array2.byteLength) { 38 for (let i = 0; i < array1.byteLength; i++) { 59 assert(end === undefined || (end >= 0 && end <= buffer.byteLength)); 60 assert((end === undefined ? buffer.byteLength : end) >= start); 68 if (slicedBuffer.byteLength !== 0 || (start === end)) { 72 const realEnd = end == null ? buffer.byteLength : end; 91 view.buffer, view.byteOffset, view.byteOffset + view.byteLength));
|
D | typed_arrays_test.js | 110 expect(buffer1.byteLength).toEqual(10); 113 expect(buffer2.byteLength).toEqual(4); 121 expect(buffer1.byteLength).toEqual(10); 124 expect(buffer2.byteLength).toEqual(10); 158 expect(array1.buffer.byteLength).toEqual(10); 160 expect(array2.byteLength).toEqual(3);
|
/third_party/node/deps/npm/node_modules/typedarray/ |
D | index.js | 252 this.byteLength = length; 257 for (i = 0; i < this.byteLength; i += 1) { 295 this.byteLength = this.length * this.BYTES_PER_ELEMENT; 296 this.buffer = new ArrayBuffer(this.byteLength); 303 this.byteLength = this.length * this.BYTES_PER_ELEMENT; 304 this.buffer = new ArrayBuffer(this.byteLength); 316 this.byteLength = this.length * this.BYTES_PER_ELEMENT; 317 this.buffer = new ArrayBuffer(this.byteLength); 331 if (this.byteOffset > this.buffer.byteLength) { 342 this.byteLength = this.buffer.byteLength - this.byteOffset; [all …]
|
/third_party/node/deps/npm/node_modules/npm-registry-fetch/node_modules/safe-buffer/ |
D | index.d.ts | 11 writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 12 writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 13 writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 14 writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 15 readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number; 16 readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number; 17 readIntLE(offset: number, byteLength: number, noAssert?: boolean): number; 18 readIntBE(offset: number, byteLength: number, noAssert?: boolean): number; 146 static byteLength(string: string, encoding?: string): number;
|
/third_party/node/deps/npm/node_modules/string_decoder/node_modules/safe-buffer/ |
D | index.d.ts | 11 writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 12 writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 13 writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 14 writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 15 readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number; 16 readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number; 17 readIntLE(offset: number, byteLength: number, noAssert?: boolean): number; 18 readIntBE(offset: number, byteLength: number, noAssert?: boolean): number; 146 static byteLength(string: string, encoding?: string): number;
|
/third_party/node/deps/npm/node_modules/safe-buffer/ |
D | index.d.ts | 11 writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 12 writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 13 writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 14 writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 15 readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number; 16 readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number; 17 readIntLE(offset: number, byteLength: number, noAssert?: boolean): number; 18 readIntBE(offset: number, byteLength: number, noAssert?: boolean): number; 146 static byteLength(string: string, encoding?: string): number;
|
/third_party/node/deps/npm/node_modules/tar/node_modules/safe-buffer/ |
D | index.d.ts | 11 writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 12 writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 13 writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 14 writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; 15 readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number; 16 readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number; 17 readIntLE(offset: number, byteLength: number, noAssert?: boolean): number; 18 readIntBE(offset: number, byteLength: number, noAssert?: boolean): number; 146 static byteLength(string: string, encoding?: string): number;
|
/third_party/flutter/skia/src/utils/ |
D | SkUTF.cpp | 47 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) { in CountUTF8() argument 52 const char* stop = utf8 + byteLength; in CountUTF8() 70 int SkUTF::CountUTF16(const uint16_t* utf16, size_t byteLength) { in CountUTF16() argument 71 if (!utf16 || !is_align2(intptr_t(utf16)) || !is_align2(byteLength)) { in CountUTF16() 75 const uint16_t* stop = src + (byteLength >> 1); in CountUTF16() 96 int SkUTF::CountUTF32(const int32_t* utf32, size_t byteLength) { in CountUTF32() argument 97 if (!is_align4(intptr_t(utf32)) || !is_align4(byteLength) || byteLength >> 2 > INT_MAX) { in CountUTF32() 102 const uint32_t* stop = ptr + (byteLength >> 2); in CountUTF32() 109 return (int)(byteLength >> 2); in CountUTF32()
|
/third_party/node/test/fixtures/wpt/FileAPI/support/ |
D | Blob.js | 58 return new DataView(array.buffer, array.byteOffset, array.byteLength); 61 assert_equals(view1.byteLength, view2.byteLength, 64 const byteLength = view1.byteLength; constant 66 for (let i = 0; i < byteLength; ++i) {
|
/third_party/skia/src/utils/ |
D | SkUTF.cpp | 48 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) { in CountUTF8() argument 53 const char* stop = utf8 + byteLength; in CountUTF8() 71 int SkUTF::CountUTF16(const uint16_t* utf16, size_t byteLength) { in CountUTF16() argument 72 if (!utf16 || !is_align2(intptr_t(utf16)) || !is_align2(byteLength)) { in CountUTF16() 76 const uint16_t* stop = src + (byteLength >> 1); in CountUTF16() 97 int SkUTF::CountUTF32(const int32_t* utf32, size_t byteLength) { in CountUTF32() argument 98 if (!is_align4(intptr_t(utf32)) || !is_align4(byteLength) || !SkTFitsIn<int>(byteLength >> 2)) { in CountUTF32() 103 const uint32_t* stop = ptr + (byteLength >> 2); in CountUTF32() 110 return (int)(byteLength >> 2); in CountUTF32()
|
/third_party/typescript/tests/baselines/reference/ |
D | useSharedArrayBuffer1.symbols | 12 var len = foge.byteLength; 14 >foge.byteLength : Symbol(SharedArrayBuffer.byteLength, Decl(lib.es2017.sharedmemory.d.ts, --, --)) 16 >byteLength : Symbol(SharedArrayBuffer.byteLength, Decl(lib.es2017.sharedmemory.d.ts, --, --))
|
D | useSharedArrayBuffer4.symbols | 26 var len = foge.byteLength; 28 >foge.byteLength : Symbol(SharedArrayBuffer.byteLength, Decl(lib.es2017.sharedmemory.d.ts, --, --)) 30 >byteLength : Symbol(SharedArrayBuffer.byteLength, Decl(lib.es2017.sharedmemory.d.ts, --, --))
|
/third_party/node/lib/ |
D | v8.js | 287 this.writeUint32(abView.byteLength); 290 abView.byteLength)); 303 const byteLength = this.readUint32(); 304 const byteOffset = this._readRawBytes(byteLength); 311 byteLength / BYTES_PER_ELEMENT); 314 const buffer_copy = Buffer.allocUnsafe(byteLength); 315 copy(this.buffer, buffer_copy, 0, byteOffset, byteOffset + byteLength); 318 byteLength / BYTES_PER_ELEMENT);
|
/third_party/jerryscript/tests/unit-core/ |
D | test-dataview.c | 42 jerry_length_t byteLength = 0;; in main() local 43 jerry_value_t internal_buffer = jerry_get_dataview_buffer (view1, &byteOffset, &byteLength); in main() 46 TEST_ASSERT (byteLength == 16); in main() 52 internal_buffer = jerry_get_dataview_buffer (view2, &byteOffset, &byteLength); in main() 55 TEST_ASSERT (byteLength == 4); in main()
|
/third_party/node/deps/npm/node_modules/bcrypt-pbkdf/ |
D | index.js | 485 cdata[i] = stream2word(ciphertext, ciphertext.byteLength); 487 state.enc(cdata, cdata.byteLength / 8); 509 keylen > (out.byteLength * out.byteLength) || saltlen > (1<<20)) 512 stride = Math.floor((keylen + out.byteLength - 1) / out.byteLength); 528 for (i = out.byteLength; i--;) 532 crypto_hash_sha512(sha2salt, tmpout, tmpout.byteLength); 534 for (j = 0; j < out.byteLength; j++)
|
/third_party/skia/gm/ |
D | skbug_5321.cpp | 28 size_t byteLength = strlen(text); variable 29 canvas->drawSimpleText(text, byteLength, SkTextEncoding::kUTF8, x, y, font, SkPaint()); 32 int glyph_count = font.countText(text, byteLength, SkTextEncoding::kUTF8); 36 font.textToGlyphs(text, byteLength, SkTextEncoding::kUTF8, rec.glyphs, glyph_count);
|
/third_party/flutter/skia/gm/ |
D | skbug_5321.cpp | 28 size_t byteLength = strlen(text); variable 29 canvas->drawSimpleText(text, byteLength, SkTextEncoding::kUTF8, x, y, font, SkPaint()); 32 int glyph_count = font.countText(text, byteLength, SkTextEncoding::kUTF8); 36 font.textToGlyphs(text, byteLength, SkTextEncoding::kUTF8, rec.glyphs, glyph_count);
|
/third_party/node/test/node-api/test_worker_buffer_callback/ |
D | test.js | 11 const origByteLength = buffer.byteLength; 14 assert.strictEqual(buffer.byteLength, origByteLength); 15 assert.notStrictEqual(buffer.byteLength, 0);
|
/third_party/node/test/addons/worker-buffer-callback/ |
D | test.js | 11 const origByteLength = buffer.byteLength; 14 assert.strictEqual(buffer.byteLength, origByteLength); 15 assert.notStrictEqual(buffer.byteLength, 0);
|
/third_party/flutter/skia/src/core/ |
D | SkFont.cpp | 155 const SkUnichar* convert(const void* text, size_t byteLength, SkTextEncoding encoding) { in convert() argument 159 uni = fStorage.reset(byteLength); in convert() 161 const char* end = ptr + byteLength; in convert() 167 uni = fStorage.reset(byteLength); in convert() 169 const uint16_t* end = ptr + (byteLength >> 1); in convert() 187 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, in textToGlyphs() argument 189 if (0 == byteLength) { in textToGlyphs() 195 int count = SkFontPriv::CountTextElements(text, byteLength, encoding); in textToGlyphs() 206 const SkUnichar* uni = storage.convert(text, byteLength, encoding); in textToGlyphs() 402 int SkFontPriv::CountTextElements(const void* text, size_t byteLength, SkTextEncoding encoding) { in CountTextElements() argument [all …]
|