Lines Matching refs:bufsize
1121 DWORD bufsize; in uv_os_tmpdir() local
1154 bufsize = WideCharToMultiByte(CP_UTF8, 0, path, -1, NULL, 0, NULL, NULL); in uv_os_tmpdir()
1156 if (bufsize == 0) { in uv_os_tmpdir()
1159 } else if (bufsize > *size) { in uv_os_tmpdir()
1161 *size = bufsize; in uv_os_tmpdir()
1166 bufsize = WideCharToMultiByte(CP_UTF8, in uv_os_tmpdir()
1176 if (bufsize == 0) in uv_os_tmpdir()
1179 *size = bufsize - 1; in uv_os_tmpdir()
1203 DWORD bufsize; in uv__convert_utf16_to_utf8() local
1209 bufsize = WideCharToMultiByte(CP_UTF8, in uv__convert_utf16_to_utf8()
1218 if (bufsize == 0) in uv__convert_utf16_to_utf8()
1224 *utf8 = uv__malloc(bufsize + 1); in uv__convert_utf16_to_utf8()
1230 bufsize = WideCharToMultiByte(CP_UTF8, in uv__convert_utf16_to_utf8()
1235 bufsize, in uv__convert_utf16_to_utf8()
1239 if (bufsize == 0) { in uv__convert_utf16_to_utf8()
1245 (*utf8)[bufsize] = '\0'; in uv__convert_utf16_to_utf8()
1258 int bufsize; in uv__convert_utf8_to_utf16() local
1264 bufsize = MultiByteToWideChar(CP_UTF8, 0, utf8, utf8len, NULL, 0); in uv__convert_utf8_to_utf16()
1266 if (bufsize == 0) in uv__convert_utf8_to_utf16()
1272 *utf16 = uv__malloc(sizeof(WCHAR) * (bufsize + 1)); in uv__convert_utf8_to_utf16()
1278 bufsize = MultiByteToWideChar(CP_UTF8, 0, utf8, utf8len, *utf16, bufsize); in uv__convert_utf8_to_utf16()
1280 if (bufsize == 0) { in uv__convert_utf8_to_utf16()
1286 (*utf16)[bufsize] = L'\0'; in uv__convert_utf8_to_utf16()
1295 DWORD bufsize; in uv__getpwuid_r() local
1305 bufsize = 0; in uv__getpwuid_r()
1306 GetUserProfileDirectoryW(token, NULL, &bufsize); in uv__getpwuid_r()
1313 path = uv__malloc(bufsize * sizeof(wchar_t)); in uv__getpwuid_r()
1319 if (!GetUserProfileDirectoryW(token, path, &bufsize)) { in uv__getpwuid_r()
1329 bufsize = ARRAY_SIZE(username); in uv__getpwuid_r()
1330 if (!GetUserNameW(username, &bufsize)) { in uv__getpwuid_r()
1445 DWORD bufsize; in uv_os_getenv() local
1494 bufsize = WideCharToMultiByte(CP_UTF8, 0, var, -1, NULL, 0, NULL, NULL); in uv_os_getenv()
1496 if (bufsize == 0) { in uv_os_getenv()
1499 } else if (bufsize > *size) { in uv_os_getenv()
1500 *size = bufsize; in uv_os_getenv()
1506 bufsize = WideCharToMultiByte(CP_UTF8, in uv_os_getenv()
1515 if (bufsize == 0) { in uv_os_getenv()
1520 *size = bufsize - 1; in uv_os_getenv()