Home
last modified time | relevance | path

Searched refs:wanted_size (Results 1 – 2 of 2) sorted by relevance

/third_party/gn/src/gn/
Dstring_output_buffer.cc20 size_t wanted_size = std::min(kPageSize, data_size - nn * kPageSize); in str() local
21 result.append(pages_[nn]->data(), wanted_size); in str()
72 size_t wanted_size = std::min(data_size - nn * kPageSize, kPageSize); in ContentsEqual() local
73 file.read(file_page.data(), wanted_size); in ContentsEqual()
77 if (memcmp(file_page.data(), pages_[nn]->data(), wanted_size) != 0) in ContentsEqual()
103 size_t wanted_size = std::min(data_size - nn * kPageSize, kPageSize); in WriteToFile() local
104 success = writer.Write(std::string_view(pages_[nn]->data(), wanted_size)); in WriteToFile()
/third_party/curl/lib/
Dmemdebug.c159 ALLOC_FUNC void *curl_dbg_calloc(size_t wanted_elements, size_t wanted_size, in curl_dbg_calloc() argument
166 DEBUGASSERT(wanted_size != 0); in curl_dbg_calloc()
172 user_size = wanted_size * wanted_elements; in curl_dbg_calloc()
181 source, line, wanted_elements, wanted_size, in curl_dbg_calloc()