Home
last modified time | relevance | path

Searched refs:byte_length (Results 1 – 25 of 36) sorted by relevance

12

/third_party/libphonenumber/cpp/src/phonenumbers/utf/
Dunicodetext.cc168 void UnicodeText::Repr::append(const char* bytes, int byte_length) { in append() argument
169 reserve(size_ + byte_length); in append()
170 memcpy(data_ + size_, bytes, byte_length); in append()
171 size_ += byte_length; in append()
230 UnicodeText& UnicodeText::CopyUTF8(const char* buffer, int byte_length) { in CopyUTF8() argument
231 repr_.Copy(buffer, byte_length); in CopyUTF8()
232 if (!UniLib:: IsInterchangeValid(buffer, byte_length)) { in CopyUTF8()
234 repr_.size_ = ConvertToInterchangeValid(repr_.data_, byte_length); in CopyUTF8()
240 int byte_length) { in UnsafeCopyUTF8() argument
241 repr_.Copy(buffer, byte_length); in UnsafeCopyUTF8()
[all …]
Dunicodetext.h301 UnicodeText& CopyUTF8(const char* utf8_buffer, int byte_length);
306 int byte_length,
313 UnicodeText& PointToUTF8(const char* utf8_buffer, int byte_length);
342 void append(const char* bytes, int byte_length);
362 UnicodeText& UnsafeCopyUTF8(const char* utf8_buffer, int byte_length);
364 char* utf8_buffer, int byte_length, int byte_capacity);
365 UnicodeText& UnsafePointToUTF8(const char* utf8_buffer, int byte_length);
366 UnicodeText& UnsafeAppendUTF8(const char* utf8_buffer, int byte_length);
399 char* utf8_buffer, int byte_length, int byte_capacity) { in MakeUnicodeTextAcceptingOwnership() argument
401 utf8_buffer, byte_length, byte_capacity); in MakeUnicodeTextAcceptingOwnership()
[all …]
Dunilib.h80 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()
Dunilib.cc48 int SpanInterchangeValid(const char* begin, int byte_length) { in SpanInterchangeValid() argument
51 const char* end = begin + byte_length; in SpanInterchangeValid()
/third_party/gstreamer/gstplugins_good/ext/wavpack/
Dgstwavpackcommon.c61 wpmd->byte_length = 2 * (guint) GST_READ_UINT8 (*p_data + 1); in gst_wavpack_read_metadata()
74 wpmd->byte_length += (extra << 9); in gst_wavpack_read_metadata()
80 --wpmd->byte_length; in gst_wavpack_read_metadata()
83 if (wpmd->byte_length > 0) { in gst_wavpack_read_metadata()
84 if (end - *p_data < wpmd->byte_length + (wpmd->byte_length & 1)) { in gst_wavpack_read_metadata()
90 *p_data += wpmd->byte_length + (wpmd->byte_length & 1); in gst_wavpack_read_metadata()
Dgstwavpackcommon.h32 guint32 byte_length; member
/third_party/jerryscript/tests/unit-core/
Dtest-typedarray.c97 jerry_length_t byte_length = (uint32_t) -1; in test_typedarray_info() local
99 jerry_value_t arraybuffer = jerry_get_typedarray_buffer (typedarray, &byte_offset, &byte_length); in test_typedarray_info()
102 TEST_ASSERT (byte_length == element_count * bytes_per_element); in test_typedarray_info()
262 jerry_length_t byte_length = 0; in test_typedarray_complex_creation() local
264 jerry_value_t buffer = jerry_get_typedarray_buffer (typedarray, &byte_offset, &byte_length); in test_typedarray_complex_creation()
265 TEST_ASSERT (byte_length == element_count * bytes_per_element); in test_typedarray_complex_creation()
271 … jerry_value_t read_count = jerry_arraybuffer_read (buffer, 0, test_buffer, offset + byte_length); in test_typedarray_complex_creation()
272 TEST_ASSERT (read_count == offset + byte_length); in test_typedarray_complex_creation()
278 TEST_ASSERT (memcmp (buffer_ext, test_buffer, offset + byte_length) == 0); in test_typedarray_complex_creation()
529 jerry_length_t byte_length; in main() local
[all …]
/third_party/node/test/addons/openssl-binding/
Dbinding.cc12 auto byte_length = view->ByteLength(); in RandomBytes() local
18 auto rval = RAND_bytes(data, static_cast<int>(byte_length)); in RandomBytes()
/third_party/node/test/addons/zlib-binding/
Dbinding.cc12 auto byte_length = view->ByteLength(); in CompressBytes() local
28 stream.avail_in = byte_length; in CompressBytes()
/third_party/ffmpeg/libavcodec/
Dsbc.c57 size_t byte_length = len >> 3; in ff_sbc_crc8() local
61 crc = av_crc(ctx, 0x0F, data, byte_length); in ff_sbc_crc8()
64 uint8_t bits = data[byte_length]; in ff_sbc_crc8()
/third_party/mbedtls/library/
Dpkwrite.c188 size_t byte_length = ( ec->grp.pbits + 7 ) / 8; in pk_write_ec_private() local
191 ret = mbedtls_mpi_write_binary( &ec->d, tmp, byte_length ); in pk_write_ec_private()
194 ret = mbedtls_asn1_write_octet_string( p, start, tmp, byte_length ); in pk_write_ec_private()
197 mbedtls_platform_zeroize( tmp, byte_length ); in pk_write_ec_private()
/third_party/node/test/js-native-api/test_typedarray/
Dtest_typedarray.c43 size_t byte_length; in Multiply() local
45 env, input_buffer, &data, &byte_length)); in Multiply()
50 env, byte_length, &output_ptr, &output_buffer)); in Multiply()
/third_party/node/benchmark/napi/function_args/
Dbinding.cc103 const size_t byte_length = view->ByteLength(); in CallWithTypedarray() local
104 assert(byte_length > 0); in CallWithTypedarray()
Dnapi_binding.c142 size_t byte_length = 0; in CallWithTypedarray() local
144 input_buffer, &data, &byte_length); in CallWithTypedarray()
/third_party/skia/third_party/externals/sfntly/cpp/tools/
DREADME_xml.txt14 byte_length="288" (length of the original cmap)
/third_party/flutter/skia/third_party/externals/sfntly/cpp/tools/
DREADME_xml.txt14 byte_length="288" (length of the original cmap)
/third_party/node/src/
Dnode_blob.cc94 size_t byte_length = view->ByteLength(); in New() local
96 entries.emplace_back(BlobEntry{std::move(store), byte_length, 0}); in New()
97 len += byte_length; in New()
Djs_native_api.h387 size_t byte_length,
393 size_t byte_length,
400 size_t* byte_length);
Djs_native_api_v8.cc2722 size_t byte_length, in napi_create_arraybuffer() argument
2730 v8::ArrayBuffer::New(isolate, byte_length); in napi_create_arraybuffer()
2744 size_t byte_length, in napi_create_external_arraybuffer() argument
2754 byte_length, in napi_create_external_arraybuffer()
2772 size_t* byte_length) { in napi_get_arraybuffer_info() argument
2786 if (byte_length != nullptr) { in napi_get_arraybuffer_info()
2787 *byte_length = backing_store->ByteLength(); in napi_get_arraybuffer_info()
2942 size_t byte_length, in napi_create_dataview() argument
2954 if (byte_length + byte_offset > buffer->ByteLength()) { in napi_create_dataview()
2963 byte_length); in napi_create_dataview()
[all …]
Dstring_bytes.cc59 isolate()->AdjustAmountOfExternalAllocatedMemory(-byte_length()); in ~ExternString()
70 int64_t byte_length() const { in byte_length() function in node::__anon9b722a440111::ExternString
115 isolate->AdjustAmountOfExternalAllocatedMemory(h_str->byte_length()); in New()
Dnode_wasi.h95 uvwasi_errno_t backingStore(char** store, size_t* byte_length);
/third_party/jerryscript/jerry-core/include/
Djerryscript-core.h651 const jerry_length_t byte_length);
659 jerry_length_t *byte_length);
706 jerry_length_t *byte_length);
/third_party/jerryscript/jerry-core/api/
Djerry.c3968 … const jerry_length_t byte_length) /**< number of elements in the byte array */ in jerry_create_dataview() argument
3982 ecma_make_uint32_value (byte_length) in jerry_create_dataview()
3989 JERRY_UNUSED (byte_length); in jerry_create_dataview()
4028 jerry_length_t *byte_length) /**< [out] byteLength property */ in jerry_get_dataview_buffer() argument
4050 if (byte_length != NULL) in jerry_get_dataview_buffer()
4052 *byte_length = dataview_p->header.u.class_prop.u.length; in jerry_get_dataview_buffer()
4062 JERRY_UNUSED (byte_length); in jerry_get_dataview_buffer()
4364 jerry_length_t *byte_length) /**< [out] byteLength property */ in jerry_get_typedarray_buffer() argument
4377 if (byte_length != NULL) in jerry_get_typedarray_buffer()
4379 *byte_length = (jerry_length_t) (ecma_typedarray_get_length (array_p) << shift); in jerry_get_typedarray_buffer()
[all …]
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-typedarray-object.c515 ecma_length_t byte_length = array_length << element_size_shift; in ecma_typedarray_create_object_with_length() local
517 if (byte_length > UINT32_MAX - sizeof (ecma_extended_object_t) - JMEM_ALIGNMENT + 1) in ecma_typedarray_create_object_with_length()
525 new_arraybuffer_p = ecma_arraybuffer_new_object (byte_length); in ecma_typedarray_create_object_with_length()
551 new_arraybuffer_p = ecma_arraybuffer_new_object (byte_length); in ecma_typedarray_create_object_with_length()
/third_party/ejdb/src/bindings/ejdb2_node/
Djs_native_api.h387 size_t byte_length,
393 size_t byte_length,
400 size_t* byte_length);

12