Lines Matching defs:size
24 // name size, such that a buffer with this size should read any name.
29 // a size in char16_t that can store a truncated char16_t if necessary.
185 DWORD bufsize = std::size(buf);
245 DWORD size = sizeof(DWORD);
247 LONG result = ReadValue(name, &local_value, &size, &type);
249 if ((type == REG_DWORD || type == REG_BINARY) && size == sizeof(DWORD))
262 DWORD size = sizeof(local_value);
263 LONG result = ReadValue(name, &local_value, &size, &type);
266 size == sizeof(local_value))
280 DWORD type = REG_SZ, size = sizeof(raw_value);
281 LONG result = ReadValue(name, raw_value, &size, &type);
287 size = ExpandEnvironmentStrings(ToWCharT(raw_value), ToWCharT(expanded),
290 // Fail: buffer too small, returns the size required
292 if (size == 0 || size > kMaxStringLength) {
320 DWORD size = 0;
321 LONG result = ReadValue(name, NULL, &size, &type);
322 if (result != ERROR_SUCCESS || size == 0)
328 std::vector<char16_t> buffer(size / sizeof(char16_t));
329 result = ReadValue(name, &buffer[0], &size, NULL);
330 if (result != ERROR_SUCCESS || size == 0)
337 const char16_t* buffer_end = entry + (size / sizeof(char16_t));
511 value_size_ = static_cast<DWORD>((value_.size() - 1) * sizeof(char16_t));
522 // Resize the buffers and retry if their size caused the failure.
524 if (value_size_in_wchars + 1 > value_.size())
526 value_size_ = static_cast<DWORD>((value_.size() - 1) * sizeof(char16_t));
534 DCHECK_LT(to_wchar_size(value_size_), value_.size());
585 DWORD ncount = std::size(name_);