Home
last modified time | relevance | path

Searched refs:ByteLength (Results 1 – 25 of 40) sorted by relevance

12

/third_party/node/deps/v8/include/
Dv8-array-buffer.h54 size_t ByteLength() const;
190 size_t ByteLength() const;
310 size_t ByteLength();
375 size_t ByteLength() const;
/third_party/node/src/crypto/
Dcrypto_dh.cc312 CHECK_EQ(static_cast<int>(bs->ByteLength()), in GenerateKeys()
315 bs->ByteLength())); in GenerateKeys()
319 if (!Buffer::New(env, ab, 0, ab->ByteLength()).ToLocal(&buffer)) return; in GenerateKeys()
344 CHECK_EQ(static_cast<int>(bs->ByteLength()), in GetField()
347 bs->ByteLength())); in GetField()
351 if (!Buffer::New(env, ab, 0, ab->ByteLength()).ToLocal(&buffer)) return; in GetField()
438 bs->ByteLength()); in ComputeSecret()
442 if (!Buffer::New(env, ab, 0, ab->ByteLength()).ToLocal(&buffer)) return; in ComputeSecret()
Dcrypto_tls.cc309 size_t len = obj->ByteLength(); in TLSExtStatusCallback()
630 pending_cleartext_input_->ByteLength() == 0) { in EncOut()
866 pending_cleartext_input_->ByteLength() == 0) { in ClearIn()
874 NodeBIO::FromBIO(enc_out_)->set_allocate_tls_hint(bs->ByteLength()); in ClearIn()
875 int written = SSL_write(ssl_.get(), bs->Data(), bs->ByteLength()); in ClearIn()
876 Debug(this, "Writing %zu bytes, written = %d", bs->ByteLength(), written); in ClearIn()
877 CHECK(written == -1 || written == static_cast<int>(bs->ByteLength())); in ClearIn()
1073 pending_cleartext_input_->ByteLength() == 0); in DoWrite()
1669 CHECK_EQ(bs->ByteLength(), in GetFinished()
1670 SSL_get_finished(w->ssl_.get(), bs->Data(), bs->ByteLength())); in GetFinished()
[all …]
Dcrypto_cipher.cc834 CHECK_LE(static_cast<size_t>(buf_len), (*out)->ByteLength()); in Init()
871 Buffer::New(env, ab, 0, ab->ByteLength()).FromMaybe(Local<Value>())); in Init()
920 int out_len = (*out)->ByteLength(); in Init()
925 CHECK_LE(static_cast<size_t>(out_len), (*out)->ByteLength()); in Init()
976 Buffer::New(env, ab, 0, ab->ByteLength()).FromMaybe(Local<Value>())); in Init()
1029 CHECK_LE(out_len, (*out)->ByteLength()); in Init()
1106 Buffer::New(env, ab, 0, ab->ByteLength()).FromMaybe(Local<Value>())); in Init()
Dcrypto_ec.cc230 bs->Data(), bs->ByteLength(), pub.get(), ecdh->key_.get(), nullptr)) in ComputeSecret()
235 if (!Buffer::New(env, ab, 0, ab->ByteLength()).ToLocal(&buffer)) return; in ComputeSecret()
281 CHECK_EQ(static_cast<int>(bs->ByteLength()), in GetPrivateKey()
283 b, static_cast<unsigned char*>(bs->Data()), bs->ByteLength())); in GetPrivateKey()
287 if (!Buffer::New(env, ab, 0, ab->ByteLength()).ToLocal(&buffer)) return; in GetPrivateKey()
Dcrypto_util.h701 length_ = view->ByteLength(); in ArrayBufferOrViewContents()
706 length_ = ab->ByteLength(); in ArrayBufferOrViewContents()
711 length_ = sab->ByteLength(); in ArrayBufferOrViewContents()
Dcrypto_sig.cc101 CHECK_LE(sig_len, sig->ByteLength()); in ValidateDSAParameters()
164 signature->ByteLength(), n)) in ValidateDSAParameters()
451 Buffer::New(env, ab, 0, ab->ByteLength()).FromMaybe(Local<Value>())); in SignFinal()
Dcrypto_common.cc470 return Buffer::New(env, ab, 0, ab->ByteLength()).FromMaybe(Local<Object>()); in GetPubKey()
508 return Buffer::New(env, ab, 0, ab->ByteLength()).FromMaybe(Local<Object>()); in GetRawDERCertificate()
1179 bs->ByteLength(), in ECPointToBuffer()
1187 return Buffer::New(env, ab, 0, ab->ByteLength()).FromMaybe(Local<Object>()); in ECPointToBuffer()
Dcrypto_rsa.cc551 public_exponent->ByteLength()), in GetRsaKeyDetail()
552 static_cast<int>(public_exponent->ByteLength())); in GetRsaKeyDetail()
/third_party/node/test/addons/openssl-binding/
Dbinding.cc13 auto byte_length = view->ByteLength(); in RandomBytes()
27 auto len = view->ByteLength(); in Hash()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/DIA/
DDIAUtils.h25 Str16.ByteLength()); in invokeBstrMethod()
/third_party/node/src/
Dnode_wasm_web_api.cc112 size = view->ByteLength(); in Push()
117 size = buffer->ByteLength(); in Push()
Dnode_blob.cc109 size_t byte_length = view->ByteLength(); in New()
187 if (start + entry.offset > entry.store->ByteLength()) { in Slice()
193 size_t len = std::min(remaining, entry.store->ByteLength() - offset); in Slice()
357 destination_ ? destination_->ByteLength() : 0); in MemoryInfo()
Dnode_buffer.cc261 return ui->ByteLength(); in Length()
268 return ui->ByteLength(); in Length()
376 New(env, ab, 0, ab->ByteLength()) in New()
421 New(env, ab, 0, ab->ByteLength()) in Copy()
1207 size_t dest_length = dest->ByteLength(); in EncodeInto()
1313 byte_length = ab->ByteLength(); in DecomposeBufferToParts()
1317 byte_length = ab->ByteLength(); in DecomposeBufferToParts()
Dutil-inl.h553 length_ = abv->ByteLength(); in Read()
572 length_ = ab->ByteLength(); in ReadValue()
578 length_ = sab->ByteLength(); in ReadValue()
Daliased_buffer-inl.h57 ab->ByteLength() - byte_offset); in AliasedBufferBase()
Dudp_wrap.cc733 CHECK_LE(static_cast<size_t>(nread), bs->ByteLength()); in OnRecv()
761 if (!Buffer::New(env, ab, 0, ab->ByteLength()).ToLocal(&argv[2])) { in OnRecv()
Dmemory_tracker-inl.h246 TrackFieldWithSize(edge_name, value->ByteLength(), "BackingStore"); in TrackField()
Dstream_base.cc268 size_t str_size = (bs ? bs->ByteLength() : 0) - offset; in Writev()
664 CHECK_LE(static_cast<size_t>(nread), bs->ByteLength()); in OnStreamRead()
Dnode_http2.cc281 bs->ByteLength(), in Pack()
287 return scope.Escape(Buffer::New(env, ab, 0, ab->ByteLength()) in Pack()
393 static_cast<char*>(bs_->Data()) + bs_->ByteLength()); in Origins()
1914 CHECK_LE(static_cast<size_t>(nread), bs->ByteLength()); in OnStreamRead()
1941 nread = bs->ByteLength(); in OnStreamRead()
/third_party/node/test/addons/zlib-binding/
Dbinding.cc12 auto byte_length = view->ByteLength(); in CompressBytes()
/third_party/node/deps/v8/src/runtime/
Druntime-test-wasm.cc47 (value->IsArrayBuffer() && value.As<v8::ArrayBuffer>()->ByteLength() <= in IsWasmCompileAllowed()
50 value.As<v8::ArrayBufferView>()->ByteLength() <= in IsWasmCompileAllowed()
/third_party/node/benchmark/napi/function_args/
Dbinding.cc103 const size_t byte_length = view->ByteLength(); in CallWithTypedarray()
/third_party/node/test/cctest/
Dtest_environment.cc394 CHECK_EQ(ab->ByteLength(), sizeof(hello)); in TEST_F()
398 CHECK_EQ(ab->ByteLength(), 0); in TEST_F()
Dtest_aliased_buffer.cc50 aliasedBuffer->GetJSArray()->ByteLength() == in ReadAndValidate()

12