/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
D | wire_format_test.py | 201 def __init__(self, byte_size): argument 202 self.byte_size = byte_size 204 return self.byte_size 207 mock_message = MockMessage(byte_size=message_byte_size) 218 self.assertEqual(2 + mock_message.byte_size, 221 self.assertEqual(3 + mock_message.byte_size, 224 mock_message.byte_size = 128 225 self.assertEqual(4 + mock_message.byte_size, 232 mock_message.byte_size = 10 233 self.assertEqual(mock_message.byte_size + 6, [all …]
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | wire_format_test.py | 205 def __init__(self, byte_size): argument 206 self.byte_size = byte_size 208 return self.byte_size 211 mock_message = MockMessage(byte_size=message_byte_size) 222 self.assertEqual(2 + mock_message.byte_size, 225 self.assertEqual(3 + mock_message.byte_size, 228 mock_message.byte_size = 128 229 self.assertEqual(4 + mock_message.byte_size, 236 mock_message.byte_size = 10 237 self.assertEqual(mock_message.byte_size + 6, [all …]
|
/third_party/cef/libcef/common/ |
D | string_util.cc | 47 const size_t byte_size = string.length(); in CreateSharedMemoryRegion() local 50 const size_t byte_size = in CreateSharedMemoryRegion() 53 auto mapped_region = base::ReadOnlySharedMemoryRegion::Create(byte_size); in CreateSharedMemoryRegion() 55 memcpy(mapped_region.mapping.memory(), string.data(), byte_size); in CreateSharedMemoryRegion()
|
/third_party/grpc/include/grpcpp/impl/codegen/ |
D | proto_utils.h | 52 int byte_size = static_cast<int>(msg.ByteSizeLong()); in GenericSerialize() local 53 if (static_cast<size_t>(byte_size) <= GRPC_SLICE_INLINED_SIZE) { in GenericSerialize() 54 Slice slice(byte_size); in GenericSerialize() 63 ProtoBufferWriter writer(bb, kProtoBufferWriterMaxBufferLength, byte_size); in GenericSerialize()
|
/third_party/protobuf/src/google/protobuf/ |
D | message_lite.cc | 455 size_t byte_size = ByteSizeLong(); in AppendPartialToString() local 456 if (byte_size > INT_MAX) { in AppendPartialToString() 458 << " exceeded maximum protobuf size of 2GB: " << byte_size; in AppendPartialToString() 462 STLStringResizeUninitialized(output, old_size + byte_size); in AppendPartialToString() 465 SerializeToArrayImpl(*this, start, byte_size); in AppendPartialToString() 485 const size_t byte_size = ByteSizeLong(); in SerializePartialToArray() local 486 if (byte_size > INT_MAX) { in SerializePartialToArray() 488 << " exceeded maximum protobuf size of 2GB: " << byte_size; in SerializePartialToArray() 491 if (size < byte_size) return false; in SerializePartialToArray() 493 SerializeToArrayImpl(*this, start, byte_size); in SerializePartialToArray()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
D | tu_pipeline_cache.c | 58 const size_t byte_size = cache->table_size * sizeof(cache->hash_table[0]); in tu_pipeline_cache_init() local 59 cache->hash_table = malloc(byte_size); in tu_pipeline_cache_init() 67 memset(cache->hash_table, 0, byte_size); in tu_pipeline_cache_init() 159 const size_t byte_size = table_size * sizeof(cache->hash_table[0]); in tu_pipeline_cache_grow() local 163 table = malloc(byte_size); in tu_pipeline_cache_grow() 172 memset(cache->hash_table, 0, byte_size); in tu_pipeline_cache_grow()
|
/third_party/ffmpeg/libavcodec/ |
D | get_bits.h | 678 int byte_size) in init_get_bits8() argument 680 if (byte_size > INT_MAX / 8 || byte_size < 0) in init_get_bits8() 681 byte_size = -1; in init_get_bits8() 682 return init_get_bits(s, buffer, byte_size * 8); in init_get_bits8() 686 int byte_size) in init_get_bits8_le() argument 688 if (byte_size > INT_MAX / 8 || byte_size < 0) in init_get_bits8_le() 689 byte_size = -1; in init_get_bits8_le() 690 return init_get_bits_xe(s, buffer, byte_size * 8, 1); in init_get_bits8_le()
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_nir_lower_ubo_loads.c | 47 unsigned byte_size = bit_size / 8; in lower_ubo_load_instr() local 54 assert(offset % byte_size == 0); in lower_ubo_load_instr() 87 unsigned load_size = byte_size * load->num_components; in lower_ubo_load_instr()
|
/third_party/gstreamer/gstreamer/libs/gst/controller/ |
D | gstdirectcontrolbinding.c | 252 self->byte_size = sizeof (g##type); in gst_direct_control_binding_constructor() 283 self->byte_size = sizeof (gboolean); in gst_direct_control_binding_constructor() 288 self->byte_size = sizeof (gint); in gst_direct_control_binding_constructor() 435 gint byte_size; in gst_direct_control_binding_get_value_array() local 445 byte_size = self->byte_size; in gst_direct_control_binding_get_value_array() 458 values += byte_size; in gst_direct_control_binding_get_value_array()
|
D | gstdirectcontrolbinding.h | 84 gint byte_size; member
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | DataExtractor.cpp | 124 uint64_t DataExtractor::getUnsigned(uint64_t *offset_ptr, uint32_t byte_size, in getUnsigned() argument 126 switch (byte_size) { in getUnsigned() 140 DataExtractor::getSigned(uint64_t *offset_ptr, uint32_t byte_size) const { in getSigned() 141 switch (byte_size) { in getSigned()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_nir_lower_mem_access_bit_sizes.c | 187 const unsigned byte_size = bit_size / 8; in lower_mem_store_bit_size() local 188 assert(byte_size <= sizeof(uint64_t)); in lower_mem_store_bit_size() 195 BITSET_SET_RANGE_INSIDE_WORD(mask, i * byte_size, ((i + 1) * byte_size) - 1); in lower_mem_store_bit_size()
|
D | brw_nir_lower_rt_intrinsics.c | 148 unsigned byte_size = bit_size / 8; in lower_rt_intrinsics_impl() local 156 assert(offset % byte_size == 0); in lower_rt_intrinsics_impl() 181 sysval = nir_load_global_constant(b, addr, byte_size, in lower_rt_intrinsics_impl()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/ |
D | cv_tensor.cc | 36 int64_t byte_size = (*out)->SizeInBytes(); in CreateEmpty() local 38 if (byte_size != 0) { in CreateEmpty() 39 RETURN_IF_NOT_OK((*out)->AllocateBuffer(byte_size)); in CreateEmpty()
|
D | device_tensor.cc | 79 int64_t byte_size = (*out)->SizeInBytes(); in CreateFromDeviceMemory() local 82 if (byte_size != 0) { in CreateFromDeviceMemory() 83 RETURN_IF_NOT_OK((*out)->AllocateBuffer(byte_size)); in CreateFromDeviceMemory()
|
D | tensor.cc | 105 int64_t byte_size = (*out)->SizeInBytes(); in CreateEmpty() local 108 if (byte_size != 0) { in CreateEmpty() 109 RETURN_IF_NOT_OK((*out)->AllocateBuffer(byte_size)); in CreateEmpty() 117 int64_t byte_size = (*out)->SizeInBytes(); in CreateFromMemory() local 118 if (byte_size == 0) { in CreateFromMemory() 121 if (byte_size < SECUREC_MEM_MAX_LEN) { in CreateFromMemory() 122 int ret_code = memcpy_s((*out)->data_, byte_size, src, byte_size); in CreateFromMemory() 125 auto ret_code = std::memcpy((*out)->data_, src, byte_size); in CreateFromMemory()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_pipeline_cache.c | 76 const size_t byte_size = cache->table_size * sizeof(cache->hash_table[0]); in radv_pipeline_cache_init() local 77 cache->hash_table = malloc(byte_size); in radv_pipeline_cache_init() 85 memset(cache->hash_table, 0, byte_size); in radv_pipeline_cache_init() 245 const size_t byte_size = table_size * sizeof(cache->hash_table[0]); in radv_pipeline_cache_grow() local 249 table = malloc(byte_size); in radv_pipeline_cache_grow() 258 memset(cache->hash_table, 0, byte_size); in radv_pipeline_cache_grow()
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-algs.hh | 877 template <typename elt_t, unsigned int byte_size> 890 if (HB_VECTOR_SIZE && 0 == (byte_size * 8) % HB_VECTOR_SIZE) in process() 909 if (HB_VECTOR_SIZE && 0 == (byte_size * 8) % HB_VECTOR_SIZE) in operator ~() 920 static_assert (byte_size / sizeof (elt_t) * sizeof (elt_t) == byte_size, ""); 922 elt_t v[byte_size / sizeof (elt_t)]; 924 hb_vector_size_impl_t vec[byte_size / sizeof (hb_vector_size_impl_t)];
|
/third_party/exfatprogs/mkfs/ |
D | mkfs.c | 578 unsigned long long byte_size = strtoull(size, &data_unit, 0); in parse_size() local 583 byte_size <<= 20; in parse_size() 587 byte_size <<= 10; in parse_size() 597 return byte_size; in parse_size()
|
/third_party/flatbuffers/ts/ |
D | byte-buffer.ts | 18 static allocate(byte_size: number): ByteBuffer { 19 return new ByteBuffer(new Uint8Array(byte_size));
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/ |
D | cache_embedding.cc | 207 const size_t byte_size) { in InitHashMapData() argument 212 int ret = memset_s(hashmap_data, byte_size, 0, byte_size); in InitHashMapData() 249 size_t byte_size = new_tensor->Size(); in InitHashMap() local 251 InitHashMapData<int64_t>(new_tensor->data_c(), host_size, cache_size, hashmap_size, byte_size); in InitHashMap() 253 InitHashMapData<int32_t>(new_tensor->data_c(), host_size, cache_size, hashmap_size, byte_size); in InitHashMap()
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
D | pixelshader9.c | 77 This->byte_code.tokens = mem_dup(pFunction, info.byte_size); in NinePixelShader9_ctor() 80 This->byte_code.size = info.byte_size; in NinePixelShader9_ctor()
|
D | vertexshader9.c | 92 This->byte_code.tokens = mem_dup(pFunction, info.byte_size); in NineVertexShader9_ctor() 95 This->byte_code.size = info.byte_size; in NineVertexShader9_ctor()
|
/third_party/glib/glib/ |
D | gstrfuncs.c | 389 guint byte_size) in g_memdup() argument 393 if (mem && byte_size != 0) in g_memdup() 395 new_mem = g_malloc (byte_size); in g_memdup() 396 memcpy (new_mem, mem, byte_size); in g_memdup() 421 gsize byte_size) in g_memdup2() argument 425 if (mem && byte_size != 0) in g_memdup2() 427 new_mem = g_malloc (byte_size); in g_memdup2() 428 memcpy (new_mem, mem, byte_size); in g_memdup2()
|
D | gstrfuncs.h | 266 guint byte_size) G_GNUC_ALLOC_SIZE(2); 270 gsize byte_size) G_GNUC_ALLOC_SIZE(2);
|