/third_party/libphonenumber/cpp/src/phonenumbers/utf/ |
H A D | unicodetext.cc | 170 void UnicodeText::Repr::append(const char* bytes, int byte_length) { in append() argument 171 reserve(size_ + byte_length); in append() 172 memcpy(data_ + size_, bytes, byte_length); in append() 173 size_ += byte_length; in append() 232 UnicodeText& UnicodeText::CopyUTF8(const char* buffer, int byte_length) { in CopyUTF8() argument 233 repr_.Copy(buffer, byte_length); in CopyUTF8() 234 repr_.utf8_was_valid_ = UniLib:: IsInterchangeValid(buffer, byte_length); in CopyUTF8() 237 repr_.size_ = ConvertToInterchangeValid(repr_.data_, byte_length); in CopyUTF8() 243 int byte_length) { in UnsafeCopyUTF8() 244 repr_.Copy(buffer, byte_length); in UnsafeCopyUTF8() 242 UnsafeCopyUTF8(const char* buffer, int byte_length) UnsafeCopyUTF8() argument 250 TakeOwnershipOfUTF8(char* buffer, int byte_length, int byte_capacity) TakeOwnershipOfUTF8() argument 262 UnsafeTakeOwnershipOfUTF8(char* buffer, int byte_length, int byte_capacity) UnsafeTakeOwnershipOfUTF8() argument 271 PointToUTF8(const char* buffer, int byte_length) PointToUTF8() argument 283 UnsafePointToUTF8(const char* buffer, int byte_length) UnsafePointToUTF8() argument [all...] |
H A D | unicodetext.h | 302 UnicodeText& CopyUTF8(const char* utf8_buffer, int byte_length); 307 int byte_length, 313 // CopyUTF8(utf8_buffer, byte_length). 314 UnicodeText& PointToUTF8(const char* utf8_buffer, int byte_length); 347 void append(const char* bytes, int byte_length); 367 UnicodeText& UnsafeCopyUTF8(const char* utf8_buffer, int byte_length); 369 char* utf8_buffer, int byte_length, int byte_capacity); 370 UnicodeText& UnsafePointToUTF8(const char* utf8_buffer, int byte_length); 371 UnicodeText& UnsafeAppendUTF8(const char* utf8_buffer, int byte_length); 404 char* utf8_buffer, int byte_length, in in MakeUnicodeTextAcceptingOwnership() 403 MakeUnicodeTextAcceptingOwnership( char* utf8_buffer, int byte_length, int byte_capacity) MakeUnicodeTextAcceptingOwnership() argument 413 MakeUnicodeTextWithoutAcceptingOwnership( const char* utf8_buffer, int byte_length) MakeUnicodeTextWithoutAcceptingOwnership() argument [all...] |
H A D | unilib.h | 80 int SpanInterchangeValid(const char* src, int byte_length); 88 inline bool IsInterchangeValid(const char* src, int byte_length) { in IsInterchangeValid() argument 89 return (byte_length == SpanInterchangeValid(src, byte_length)); in IsInterchangeValid()
|
H A D | unilib.cc | 48 int SpanInterchangeValid(const char* begin, int byte_length) { in SpanInterchangeValid() argument 51 const char* end = begin + byte_length; in SpanInterchangeValid()
|
/third_party/node/deps/v8/src/objects/ |
H A D | backing-store.cc | 81 // ^ byte_length in GetReservedRegion() 134 inline void DebugCheckZero(void* start, size_t byte_length) { in DebugCheckZero() argument 141 for (size_t i = 0; i < kBaseCase && i < byte_length; i++) { in DebugCheckZero() 147 if (byte_length > kBaseCase) { in DebugCheckZero() 148 DCHECK_EQ(0, memcmp(bytes, bytes + kBaseCase, byte_length - kBaseCase)); in DebugCheckZero() 172 BackingStore::BackingStore(void* buffer_start, size_t byte_length, in BackingStore() argument 179 byte_length_(byte_length), in BackingStore() 232 this, buffer_start_, byte_length(), byte_capacity_, reservation_size); in ~BackingStore() 269 this, buffer_start_, byte_length(), byte_capacity_); in ~BackingStore() 279 buffer_start_, byte_length(), byte_capacity in ~BackingStore() 286 Allocate( Isolate* isolate, size_t byte_length, SharedFlag shared, InitializedFlag initialized) Allocate() argument 382 TryAllocateAndPartiallyCommitMemory( Isolate* isolate, size_t byte_length, size_t max_byte_length, size_t page_size, size_t initial_pages, size_t maximum_pages, bool is_wasm_memory, SharedFlag shared) TryAllocateAndPartiallyCommitMemory() argument [all...] |
H A D | js-array-buffer.cc | 77 backing_store->byte_length() == backing_store->max_byte_length()); in Attach() 89 // GSABs need to read their byte_length from the BackingStore. Maintain the in Attach() 90 // invariant that their byte_length field is always 0. in Attach() 93 CHECK_LE(backing_store->byte_length(), kMaxByteLength); in Attach() 94 set_byte_length(backing_store->byte_length()); in Attach() 147 return buffer.GetBackingStore()->byte_length(std::memory_order_seq_cst); in GsabByteLength() 152 Isolate* isolate, size_t byte_length, size_t max_byte_length, in GetResizableBackingStorePageConfiguration() 161 if (!RoundUpToPageSize(byte_length, *page_size, JSArrayBuffer::kMaxByteLength, in GetResizableBackingStorePageConfiguration() 236 size_t byte_length = self->byte_length(); in GetBuffer() local 151 GetResizableBackingStorePageConfiguration( Isolate* isolate, size_t byte_length, size_t max_byte_length, ShouldThrow should_throw, size_t* page_size, size_t* initial_pages, size_t* max_pages) GetResizableBackingStorePageConfiguration() argument [all...] |
H A D | value-serializer.cc | 526 uint32_t byte_length = chars.length() * sizeof(base::uc16); in WriteString() local 528 if ((buffer_size_ + 1 + BytesNeededForVarint(byte_length)) & 1) in WriteString() 932 double byte_length = array_buffer->byte_length(); in WriteJSArrayBuffer() local 933 if (byte_length > std::numeric_limits<uint32_t>::max()) { in WriteJSArrayBuffer() 939 WriteVarint<uint32_t>(byte_length); in WriteJSArrayBuffer() 940 WriteRawBytes(array_buffer->backing_store(), byte_length); in WriteJSArrayBuffer() 965 WriteVarint(static_cast<uint32_t>(view.byte_length())); in WriteJSArrayBufferView() 1578 uint32_t byte_length; in ReadOneByteString() local 1580 if (!ReadVarint<uint32_t>().To(&byte_length)) retur in ReadOneByteString() 1588 uint32_t byte_length; ReadTwoByteString() local 1620 uint32_t byte_length; ReadExpectedString() local 1959 uint32_t byte_length; ReadJSArrayBuffer() local 2001 uint32_t byte_length = 0; ReadJSArrayBufferView() local [all...] |
H A D | backing-store.h | 50 size_t byte_length, 64 Isolate* isolate, size_t byte_length, size_t max_byte_length, 89 size_t byte_length( in byte_length() function in v8::internal::BackingStore 163 return byte_length(); in PerIsolateAccountingLength() 171 BackingStore(void* buffer_start, size_t byte_length, size_t max_byte_length,
|
H A D | js-array-buffer-inl.h | 30 size_t JSArrayBuffer::byte_length() const { in byte_length() function in v8::internal::JSArrayBuffer 55 // Invariant: byte_length for GSAB is 0 (it needs to be read from the in GetByteLength() 57 DCHECK_EQ(0, byte_length()); in GetByteLength() 59 return GetBackingStore()->byte_length(std::memory_order_seq_cst); in GetByteLength() 61 return byte_length(); in GetByteLength() 167 DCHECK_IMPLIES(is_empty, byte_length() == 0); in IsEmpty() 179 size_t JSArrayBufferView::byte_length() const { in byte_length() function in v8::internal::JSArrayBufferView
|
H A D | js-array-buffer.h | 37 // [byte_length]: length in bytes 38 DECL_PRIMITIVE_ACCESSORS(byte_length, size_t) 81 // An empty ArrayBuffer will have a byte_length of zero but not necessarily a 82 // nullptr backing_store. An ArrayBuffer with a byte_length of zero may not 118 Isolate* isolate, size_t byte_length, size_t max_byte_length, 246 // [byte_length]: length of typed array in bytes. 247 DECL_PRIMITIVE_ACCESSORS(byte_length, size_t)
|
/third_party/node/deps/v8/include/ |
H A D | v8-array-buffer.h | 76 size_t byte_length); 193 * Create a new ArrayBuffer. Allocate |byte_length| bytes. 198 static Local<ArrayBuffer> New(Isolate* isolate, size_t byte_length); 225 size_t byte_length); 235 void* data, size_t byte_length, v8::BackingStore::DeleterCallback deleter, 317 * Will write at most min(|byte_length|, ByteLength) bytes starting at 321 size_t CopyContents(void* dest, size_t byte_length); 378 * Create a new SharedArrayBuffer. Allocate |byte_length| bytes. 383 static Local<SharedArrayBuffer> New(Isolate* isolate, size_t byte_length); 410 size_t byte_length); [all...] |
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-dataview.cc | 36 Handle<Object> byte_length = args.atOrUndefined(isolate, 3); in BUILTIN() local 76 if (byte_length->IsUndefined(isolate)) { in BUILTIN() 86 isolate, byte_length, in BUILTIN() 87 Object::ToIndex(isolate, byte_length, in BUILTIN() 89 if (view_byte_offset + byte_length->Number() > buffer_byte_length) { in BUILTIN() 92 NewRangeError(MessageTemplate::kInvalidDataViewLength, byte_length)); in BUILTIN() 94 view_byte_length = byte_length->Number(); in BUILTIN()
|
H A D | builtins-arraybuffer.cc | 58 size_t byte_length; in ConstructBuffer() local 60 if (!TryNumberToSize(*length, &byte_length) || in ConstructBuffer() 61 byte_length > JSArrayBuffer::kMaxByteLength) { in ConstructBuffer() 70 BackingStore::Allocate(isolate, byte_length, shared, initialized); in ConstructBuffer() 71 max_byte_length = byte_length; in ConstructBuffer() 78 if (byte_length > max_byte_length) { in ConstructBuffer() 86 isolate, byte_length, max_byte_length, kThrowOnError, in ConstructBuffer() 92 isolate, byte_length, max_byte_length, page_size, initial_pages, in ConstructBuffer() 393 if (is_shared && new_byte_length < array_buffer->byte_length()) { in ResizeHelper() 456 // Invariant: byte_length fo in ResizeHelper() 478 size_t byte_length = array_buffer->GetByteLength(); BUILTIN() local [all...] |
H A D | builtins-typed-array-gen.h | 58 TNode<UintPtrT> byte_length); 61 TNode<UintPtrT> byte_length); 64 TNode<UintPtrT> byte_length); 67 TNode<UintPtrT> byte_length);
|
H A D | builtins-typed-array-gen.cc | 52 // - Set the byte_length field to zero. in AllocateEmptyOnHeapBuffer() 141 TNode<UintPtrT> byte_length = Select<UintPtrT>( in TF_BUILTIN() local 144 Return(ChangeUintPtrToTagged(byte_length)); in TF_BUILTIN() 289 TNode<UintPtrT> byte_length) { in CallCMemmove() 295 std::make_pair(MachineType::UintPtr(), byte_length)); in CallCMemmove() 300 TNode<UintPtrT> byte_length) { in CallCRelaxedMemmove() 306 std::make_pair(MachineType::UintPtr(), byte_length)); in CallCRelaxedMemmove() 311 TNode<UintPtrT> byte_length) { in CallCMemcpy() 317 std::make_pair(MachineType::UintPtr(), byte_length)); in CallCMemcpy() 322 TNode<UintPtrT> byte_length) { in CallCRelaxedMemcpy() 287 CallCMemmove(TNode<RawPtrT> dest_ptr, TNode<RawPtrT> src_ptr, TNode<UintPtrT> byte_length) CallCMemmove() argument 298 CallCRelaxedMemmove( TNode<RawPtrT> dest_ptr, TNode<RawPtrT> src_ptr, TNode<UintPtrT> byte_length) CallCRelaxedMemmove() argument 309 CallCMemcpy(TNode<RawPtrT> dest_ptr, TNode<RawPtrT> src_ptr, TNode<UintPtrT> byte_length) CallCMemcpy() argument 320 CallCRelaxedMemcpy( TNode<RawPtrT> dest_ptr, TNode<RawPtrT> src_ptr, TNode<UintPtrT> byte_length) CallCRelaxedMemcpy() argument [all...] |
/third_party/node/deps/v8/include/v8-include/ |
H A D | v8-array-buffer.h | 92 size_t byte_length); 214 * Create a new ArrayBuffer. Allocate |byte_length| bytes. 219 static Local<ArrayBuffer> New(Isolate* isolate, size_t byte_length); 246 size_t byte_length); 256 void* data, size_t byte_length, v8::BackingStore::DeleterCallback deleter, 264 * |byte_length| must be <= |max_byte_length|. 272 size_t byte_length, size_t max_byte_length); 371 * Will write at most min(|byte_length|, ByteLength) bytes starting at 375 size_t CopyContents(void* dest, size_t byte_length); 437 * Create a new SharedArrayBuffer. Allocate |byte_length| byte [all...] |
/third_party/node/deps/v8/src/regexp/ |
H A D | regexp-macro-assembler.cc | 38 size_t byte_length, in CaseInsensitiveCompareNonUnicode() 45 DCHECK_EQ(0, byte_length % 2); in CaseInsensitiveCompareNonUnicode() 46 size_t length = byte_length / 2; in CaseInsensitiveCompareNonUnicode() 59 return CaseInsensitiveCompareUnicode(byte_offset1, byte_offset2, byte_length, in CaseInsensitiveCompareNonUnicode() 67 size_t byte_length, in CaseInsensitiveCompareUnicode() 73 DCHECK_EQ(0, byte_length % 2); in CaseInsensitiveCompareUnicode() 76 int32_t length = static_cast<int32_t>(byte_length >> 1); in CaseInsensitiveCompareUnicode() 84 size_t length = byte_length >> 1; in CaseInsensitiveCompareUnicode() 359 intptr_t byte_length = *input_end - *input_start; in CheckStackGuardState() local 361 *input_end = *input_start + byte_length; in CheckStackGuardState() 36 CaseInsensitiveCompareNonUnicode(Address byte_offset1, Address byte_offset2, size_t byte_length, Isolate* isolate) CaseInsensitiveCompareNonUnicode() argument 65 CaseInsensitiveCompareUnicode(Address byte_offset1, Address byte_offset2, size_t byte_length, Isolate* isolate) CaseInsensitiveCompareUnicode() argument 409 int byte_length = char_length << char_size_shift; Match() local [all...] |
/third_party/mbedtls/library/ |
H A D | pkwrite.c | 159 size_t byte_length; in pk_write_ec_private() local 165 status = psa_export_key(pk->priv_id, tmp, sizeof(tmp), &byte_length); in pk_write_ec_private() 171 status = psa_export_key(pk->priv_id, tmp, sizeof(tmp), &byte_length); in pk_write_ec_private() 178 ret = mbedtls_asn1_write_octet_string(p, start, tmp, byte_length); in pk_write_ec_private() 187 size_t byte_length; in pk_write_ec_private() local 194 status = psa_export_key(pk->priv_id, tmp, sizeof(tmp), &byte_length); in pk_write_ec_private() 203 byte_length = (ec->grp.pbits + 7) / 8; in pk_write_ec_private() 205 ret = mbedtls_ecp_write_key_ext(ec, &byte_length, tmp, sizeof(tmp)); in pk_write_ec_private() 210 ret = mbedtls_asn1_write_octet_string(p, start, tmp, byte_length); in pk_write_ec_private()
|
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-typedarray.cc | 58 CHECK_EQ(0, array_buffer->byte_length()); in RUNTIME_FUNCTION() 59 size_t byte_length = array_buffer->GetBackingStore()->byte_length(); in RUNTIME_FUNCTION() local 60 return *isolate->factory()->NewNumberFromSize(byte_length); in RUNTIME_FUNCTION()
|
/third_party/node/test/addons/zlib-binding/ |
H A D | binding.cc | 12 auto byte_length = view->ByteLength(); in CompressBytes() local 28 stream.avail_in = byte_length; in CompressBytes()
|
/third_party/ffmpeg/libavcodec/ |
H A D | sbc.c | 56 size_t byte_length = len >> 3; in ff_sbc_crc8() local 60 crc = av_crc(ctx, 0x0F, data, byte_length); in ff_sbc_crc8() 63 uint8_t bits = data[byte_length]; in ff_sbc_crc8()
|
/third_party/node/deps/v8/src/snapshot/ |
H A D | serializer.cc | 480 void* backing_store, int32_t byte_length, Maybe<int32_t> max_byte_length) { in SerializeBackingStore() 495 sink_->PutInt(byte_length, "length"); in SerializeBackingStore() 499 sink_->PutRaw(static_cast<byte*>(backing_store), byte_length, "BackingStore"); in SerializeBackingStore() local 519 // We cannot store byte_length or max_byte_length larger than int32 in SerializeJSTypedArray() 521 CHECK_LE(buffer.byte_length(), std::numeric_limits<int32_t>::max()); in SerializeJSTypedArray() 522 int32_t byte_length = static_cast<int32_t>(buffer.byte_length()); in SerializeJSTypedArray() local 538 SerializeBackingStore(backing_store, byte_length, max_byte_length); in SerializeJSTypedArray() 555 // We cannot store byte_length or max_byte_length larger than int32 range in in SerializeJSArrayBuffer() 557 CHECK_LE(buffer.byte_length(), st in SerializeJSArrayBuffer() 479 SerializeBackingStore( void* backing_store, int32_t byte_length, Maybe<int32_t> max_byte_length) SerializeBackingStore() argument 558 int32_t byte_length = static_cast<int32_t>(buffer.byte_length()); SerializeJSArrayBuffer() local [all...] |
/third_party/node/src/crypto/ |
H A D | crypto_aes.cc | 187 unsigned int byte_length = params.length / CHAR_BIT; in GetCounter() local 189 data + params.iv.size() - byte_length, in GetCounter() 190 byte_length, in GetCounter() 194 unsigned int byte_length = in GetCounter() local 198 data + params.iv.size() - byte_length, in GetCounter()
|
/third_party/node/test/addons/openssl-binding/ |
H A D | binding.cc | 13 auto byte_length = view->ByteLength(); in RandomBytes() local 19 auto rval = RAND_bytes(data, static_cast<int>(byte_length)); in RandomBytes()
|
/third_party/node/test/js-native-api/test_typedarray/ |
H A D | test_typedarray.c | 44 size_t byte_length; in Multiply() local 46 env, input_buffer, &data, &byte_length)); in Multiply() 51 env, byte_length, &output_ptr, &output_buffer)); in Multiply()
|