Lines Matching defs:size

154     /* |t| is the size of the buffer _including_ nul. */
159 /* |n| is the size of the buffer _excluding_ nul but _only on success_.
161 * directory, |n| is the size the buffer should be _including_ nul.
189 int uv_cwd(char* buffer, size_t* size) {
194 if (buffer == NULL || size == NULL) {
202 r = uv__copy_utf16_to_utf8(utf16_buffer, utf16_len, buffer, size);
396 int uv_get_process_title(char* buffer, size_t size) {
400 if (buffer == NULL || size == 0)
421 if (size < len) {
676 /* Fetch the size of the adapters reported by windows, and then get the list
685 * ERROR_BUFFER_OVERFLOW, and the required buffer size will be stored in
760 /* Compute the size of the interface name. */
765 * compute the size. */
843 /* This check ensures that we don't write past the size of the data. */
934 int uv_os_homedir(char* buffer, size_t* size) {
940 performing input validation on buffer and size is taken care of by
942 r = uv_os_getenv("USERPROFILE", buffer, size);
957 if (len >= *size) {
958 *size = len + 1;
964 *size = len;
971 int uv_os_tmpdir(char* buffer, size_t* size) {
975 if (buffer == NULL || size == NULL || *size == 0)
1004 return uv__copy_utf16_to_utf8(path, len, buffer, size);
1061 int uv__copy_utf16_to_utf8(const WCHAR* utf16buffer, size_t utf16len, char* utf8, size_t *size) {
1064 if (utf8 == NULL || size == NULL)
1067 if (*size == 0) {
1068 *size = uv_utf16_length_as_wtf8(utf16buffer, utf16len);
1071 *size -= 1; /* Reserve space for NUL. */
1072 r = uv_utf16_to_wtf8(utf16buffer, utf16len, &utf8, size);
1075 *size += 1; /* Add space for NUL. */
1239 int uv_os_getenv(const char* name, char* buffer, size_t* size) {
1247 if (name == NULL || buffer == NULL || size == NULL || *size == 0)
1291 r = uv__copy_utf16_to_utf8(var, len, buffer, size);
1358 int uv_os_gethostname(char* buffer, size_t* size) {
1361 if (buffer == NULL || size == NULL || *size == 0)
1372 return uv__copy_utf16_to_utf8(buf, -1, buffer, size);