/external/pigweed/pw_hex_dump/ |
D | hex_dump.cc | 236 size_t required_size = flags.bytes_per_line * 2 + 1; in ValidateBufferSize() local 238 required_size += kSectionSeparator.length() + flags.bytes_per_line; in ValidateBufferSize() 241 required_size += kHexAddrStringSize; in ValidateBufferSize() 242 required_size += kAddressSeparator.length(); in ValidateBufferSize() 244 required_size += in ValidateBufferSize() 246 required_size += kAddressSeparator.length(); in ValidateBufferSize() 249 required_size += (flags.bytes_per_line - 1) / flags.group_every; in ValidateBufferSize() 252 if (dest_.size_bytes() < required_size) { in ValidateBufferSize()
|
/external/webrtc/modules/video_coding/ |
D | h264_sps_pps_tracker.cc | 123 size_t required_size = 0; in CopyAndFixBitstream() local 126 required_size += sps->second.size + sizeof(start_code_h264); in CopyAndFixBitstream() 127 required_size += pps->second.size + sizeof(start_code_h264); in CopyAndFixBitstream() 134 required_size += sizeof(start_code_h264); in CopyAndFixBitstream() 140 required_size += segment_length; in CopyAndFixBitstream() 145 required_size += sizeof(start_code_h264); in CopyAndFixBitstream() 147 required_size += bitstream.size(); in CopyAndFixBitstream() 152 fixed.bitstream.EnsureCapacity(required_size); in CopyAndFixBitstream()
|
/external/tensorflow/tensorflow/lite/ |
D | simple_memory_arena.cc | 115 size_t required_size = RequiredBufferSize(); in Commit() local 116 if (required_size > underlying_buffer_size_) { in Commit() 117 char* new_alloc = new char[required_size]; in Commit() 128 new_alloc + required_size - new_underlying_buffer_aligned_ptr); in Commit() 134 underlying_buffer_size_ = required_size; in Commit()
|
/external/pigweed/pw_base64/ |
D | base64.cc | 159 const size_t required_size = EncodedSize(binary.size_bytes()); in Encode() local 160 if (output_buffer.size_bytes() < required_size) { in Encode() 164 return required_size; in Encode()
|
/external/libchrome/mojo/core/ |
D | broker_messages.h | 52 const size_t required_size = sizeof(BrokerMessageHeader) + sizeof(T); in GetBrokerMessageData() local 53 if (message->payload_size() < required_size) in GetBrokerMessageData()
|
/external/webrtc/modules/audio_coding/neteq/ |
D | audio_multi_vector.cc | 195 void AudioMultiVector::AssertSize(size_t required_size) { in AssertSize() argument 196 if (Size() < required_size) { in AssertSize() 197 size_t extend_length = required_size - Size(); in AssertSize()
|
D | audio_multi_vector.h | 116 virtual void AssertSize(size_t required_size);
|
/external/llvm-project/lldb/source/Plugins/Process/Windows/Common/ |
D | DebuggerThread.cpp | 468 DWORD required_size = in HandleLoadDllEvent() local 470 if (required_size > 0) { in HandleLoadDllEvent() 471 buffer.resize(required_size + 1); in HandleLoadDllEvent() 472 required_size = GetFinalPathNameByHandleW(info.hFile, &buffer[0], in HandleLoadDllEvent() 473 required_size, VOLUME_NAME_DOS); in HandleLoadDllEvent()
|
/external/gemmlowp/eight_bit_int_gemm/ |
D | eight_bit_int_gemm.cc | 147 void AssureSize(std::int32_t required_size) { in AssureSize() argument 148 if (size_ >= required_size) { in AssureSize() 151 buffer_.reset(new std::uint8_t[required_size + 32]); in AssureSize() 156 size_ = required_size; in AssureSize()
|
/external/pdfium/core/fxge/ |
D | cfx_fontmapper.cpp | 682 uint32_t required_size = m_pFontInfo->GetFontData(hFont, 0, {}); in RawBytesForIndex() local 683 if (required_size == 0) in RawBytesForIndex() 687 FX_Alloc(uint8_t, required_size + 1)); in RawBytesForIndex() 689 m_pFontInfo->GetFontData(hFont, 0, {pBuffer.get(), required_size}); in RawBytesForIndex()
|
/external/mesa3d/src/glx/ |
D | indirect_vertex_array.c | 441 size_t required_size) in allocate_array_info_cache() argument 444 if (arrays->array_info_cache_buffer_size < required_size) { in allocate_array_info_cache() 446 required_size + MAX_HEADER_SIZE); in allocate_array_info_cache() 454 arrays->array_info_cache_buffer_size = required_size; in allocate_array_info_cache() 457 arrays->array_info_cache_size = required_size; in allocate_array_info_cache() 487 const size_t required_size = arrays->enabled_client_array_count * 12; in fill_array_info_cache() local 491 if (!allocate_array_info_cache(arrays, required_size)) { in fill_array_info_cache()
|
/external/pdfium/core/fxcodec/flate/ |
D | flatemodule.cpp | 260 uint32_t required_size = safe_required_size.ValueOrDie(); in Decode() local 261 if (required_size > dest_buf_size_) { in Decode() 262 ExpandDestBuf(required_size - dest_buf_size_); in Decode()
|
/external/libchrome/base/debug/ |
D | activity_tracker.cc | 1142 size_t required_size = offsetof(ModuleInfoRecord, pickle) + pickler.size(); in CreateFrom() local 1143 ModuleInfoRecord* record = allocator->New<ModuleInfoRecord>(required_size); in CreateFrom()
|
/external/libwebm/mkvparser/ |
D | mkvparser.cc | 331 const long required_size = static_cast<long>(size) + 1; in UnserializeString() local 333 str = SafeArrayAlloc<char>(1, required_size); in UnserializeString() 348 str[required_size - 1] = '\0'; in UnserializeString()
|
/external/libvpx/libvpx/third_party/libwebm/mkvparser/ |
D | mkvparser.cc | 331 const long required_size = static_cast<long>(size) + 1; in UnserializeString() local 333 str = SafeArrayAlloc<char>(1, required_size); in UnserializeString() 348 str[required_size - 1] = '\0'; in UnserializeString()
|
/external/libaom/libaom/third_party/libwebm/mkvparser/ |
D | mkvparser.cc | 331 const long required_size = static_cast<long>(size) + 1; in UnserializeString() local 333 str = SafeArrayAlloc<char>(1, required_size); in UnserializeString() 348 str[required_size - 1] = '\0'; in UnserializeString()
|
/external/libvpx/libwebm/mkvparser/ |
D | mkvparser.cc | 331 const long required_size = static_cast<long>(size) + 1; in UnserializeString() local 333 str = SafeArrayAlloc<char>(1, required_size); in UnserializeString() 348 str[required_size - 1] = '\0'; in UnserializeString()
|
/external/vulkan-validation-layers/layers/ |
D | core_validation.cpp | 7420 uint32_t required_size = first_set + set_count; in UpdateLastBoundDescriptorSets() local 7421 const uint32_t last_binding_index = required_size - 1; in UpdateLastBoundDescriptorSets() 7440 if (required_size < current_size) { in UpdateLastBoundDescriptorSets() 7443 for (auto set_idx = required_size; set_idx < current_size; ++set_idx) { in UpdateLastBoundDescriptorSets() 7448 required_size = current_size; in UpdateLastBoundDescriptorSets() 7453 if (required_size != current_size) { in UpdateLastBoundDescriptorSets() 7454 last_bound.per_set.resize(required_size); in UpdateLastBoundDescriptorSets()
|