Home
last modified time | relevance | path

Searched refs:kMaxLength (Results 1 – 25 of 35) sorted by relevance

12

/third_party/node/test/parallel/
Dtest-buffer-over-max-length.js8 const kMaxLength = buffer.kMaxLength; constant
21 assert.throws(() => Buffer(kMaxLength + 1), bufferMaxSizeMsg);
22 assert.throws(() => SlowBuffer(kMaxLength + 1), bufferMaxSizeMsg);
23 assert.throws(() => Buffer.alloc(kMaxLength + 1), bufferMaxSizeMsg);
24 assert.throws(() => Buffer.allocUnsafe(kMaxLength + 1), bufferMaxSizeMsg);
25 assert.throws(() => Buffer.allocUnsafeSlow(kMaxLength + 1), bufferMaxSizeMsg);
Dtest-zlib-kmaxlength-rangeerror.js13 const oldkMaxLength = buffer.kMaxLength;
14 buffer.kMaxLength = 64;
16 buffer.kMaxLength = oldkMaxLength;
Dtest-zlib-brotli-kmaxlength-rangeerror.js13 const oldkMaxLength = buffer.kMaxLength;
14 buffer.kMaxLength = 64;
16 buffer.kMaxLength = oldkMaxLength;
Dtest-buffer-slow.js35 SlowBuffer(buffer.kMaxLength).length, buffer.kMaxLength);
62 assert.throws(() => SlowBuffer(buffer.kMaxLength + 1), bufferMaxSizeMsg);
Dtest-buffer-constants.js5 const { kMaxLength, kStringMaxLength } = require('buffer');
17 assert.strictEqual(kMaxLength, MAX_LENGTH);
Dtest-crypto-random.js31 const { kMaxLength } = require('buffer');
35 const kMaxPossibleLength = Math.min(kMaxLength, kMaxInt32);
/third_party/flutter/skia/tools/gpu/
DMemoryCache.cpp25 static constexpr size_t kMaxLength = 60; in data_to_str() local
28 bool overlength = encodeLength > kMaxLength; in data_to_str()
30 str = SkString(str.c_str(), kMaxLength - kTailLen); in data_to_str()
/third_party/skia/tools/gpu/
DMemoryCache.cpp26 static constexpr size_t kMaxLength = 60; in data_to_str() local
29 bool overlength = encodeLength > kMaxLength; in data_to_str()
31 str = SkString(str.c_str(), kMaxLength - kTailLen); in data_to_str()
/third_party/flutter/skia/gm/
Dvariedtext.cpp74 int length = random.nextRangeU(kMinLength, kMaxLength); in onOnceBeforeDraw()
75 char text[kMaxLength]; in onOnceBeforeDraw()
150 static constexpr int kMaxLength = 40; member in VariedTextGM
/third_party/skia/gm/
Dvariedtext.cpp74 int length = random.nextRangeU(kMinLength, kMaxLength); in onOnceBeforeDraw()
75 char text[kMaxLength]; in onOnceBeforeDraw()
148 inline static constexpr int kMaxLength = 40; member in VariedTextGM
/third_party/node/src/
Dnode_buffer.h32 static const size_t kMaxLength = v8::TypedArray::kMaxLength; variable
Dnode_errors.h168 v8::TypedArray::kMaxLength); in ERR_BUFFER_TOO_LARGE()
176 v8::String::kMaxLength); in ERR_STRING_TOO_LONG()
Dnode_buffer.cc356 if (length > kMaxLength) { in New()
384 if (length > kMaxLength) { in Copy()
422 if (length > kMaxLength) { in New()
467 CHECK(length <= kMaxLength); in New()
1159 Number::New(env->isolate(), kMaxLength)).Check(); in Initialize()
1163 Integer::New(env->isolate(), String::kMaxLength)).Check(); in Initialize()
Dstring_bytes.cc622 if ((len) > Buffer::kMaxLength) { \
645 if (buflen > node::Buffer::kMaxLength) { in Encode()
/third_party/node/lib/internal/crypto/
Drandom.js12 kMaxLength,
35 const kMaxPossibleLength = MathMin(kMaxLength, kMaxInt32);
/third_party/node/deps/npm/node_modules/safer-buffer/
Dsafer.js70 MAX_LENGTH: safer.kMaxLength
/third_party/node/lib/
Dzlib.js69 kMaxLength
248 let maxOutputLength = kMaxLength;
281 1, kMaxLength, kMaxLength);
Dbuffer.js65 kMaxLength,
110 const validateOffset = (value, name, min = 0, max = kMaxLength) =>
129 value: kMaxLength,
364 if (!(size >= 0 && size <= kMaxLength)) {
1271 kMaxLength, property
/third_party/node/deps/npm/node_modules/npm-registry-fetch/node_modules/safe-buffer/
DREADME.md178 `require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
214 be less than or equal to the value of `require('buffer').kMaxLength` (on 64-bit
215 architectures, `kMaxLength` is `(2^31)-1`). Otherwise, a [`RangeError`][] is
260 `require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
/third_party/node/deps/npm/node_modules/safe-buffer/
DREADME.md178 `require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
214 be less than or equal to the value of `require('buffer').kMaxLength` (on 64-bit
215 architectures, `kMaxLength` is `(2^31)-1`). Otherwise, a [`RangeError`][] is
260 `require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
/third_party/node/deps/npm/node_modules/string_decoder/node_modules/safe-buffer/
DREADME.md180 `require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
216 be less than or equal to the value of `require('buffer').kMaxLength` (on 64-bit
217 architectures, `kMaxLength` is `(2^31)-1`). Otherwise, a [`RangeError`][] is
262 `require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
/third_party/node/deps/npm/node_modules/tar/node_modules/safe-buffer/
DREADME.md178 `require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
214 be less than or equal to the value of `require('buffer').kMaxLength` (on 64-bit
215 architectures, `kMaxLength` is `(2^31)-1`). Otherwise, a [`RangeError`][] is
260 `require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/
Ddemangle.cc444 constexpr size_t kMaxLength = 20; in MaybeAppendDecimal() local
445 char buf[kMaxLength]; in MaybeAppendDecimal()
452 char *p = &buf[kMaxLength]; in MaybeAppendDecimal()
459 Append(state, p, kMaxLength - (p - buf)); in MaybeAppendDecimal()
/third_party/protobuf/src/google/protobuf/
Dmap.h929 const size_type kMaxLength = 8;
937 GOOGLE_DCHECK_LE(count, kMaxLength);
938 return count >= kMaxLength;
/third_party/node/tools/doc/
Dapilinks.mjs12 // is `kMaxLength`, in which case it is `buffer`.

12