Lines Matching refs:size_t

62 #define CURL_MASK_USIZE_T ((size_t)~0)
107 curl_off_t curlx_uztoso(size_t uznum) in curlx_uztoso()
117 DEBUGASSERT(uznum <= (size_t) CURL_MASK_SCOFFT); in curlx_uztoso()
118 return (curl_off_t)(uznum & (size_t) CURL_MASK_SCOFFT); in curlx_uztoso()
129 int curlx_uztosi(size_t uznum) in curlx_uztosi()
136 DEBUGASSERT(uznum <= (size_t) CURL_MASK_SINT); in curlx_uztosi()
137 return (int)(uznum & (size_t) CURL_MASK_SINT); in curlx_uztosi()
148 unsigned long curlx_uztoul(size_t uznum) in curlx_uztoul()
156 DEBUGASSERT(uznum <= (size_t) CURL_MASK_ULONG); in curlx_uztoul()
158 return (unsigned long)(uznum & (size_t) CURL_MASK_ULONG); in curlx_uztoul()
169 unsigned int curlx_uztoui(size_t uznum) in curlx_uztoui()
177 DEBUGASSERT(uznum <= (size_t) CURL_MASK_UINT); in curlx_uztoui()
179 return (unsigned int)(uznum & (size_t) CURL_MASK_UINT); in curlx_uztoui()
254 ssize_t curlx_uztosz(size_t uznum) in curlx_uztosz()
261 DEBUGASSERT(uznum <= (size_t) CURL_MASK_SSIZE_T); in curlx_uztosz()
262 return (ssize_t)(uznum & (size_t) CURL_MASK_SSIZE_T); in curlx_uztosz()
273 size_t curlx_sotouz(curl_off_t sonum) in curlx_sotouz()
281 return (size_t)(sonum & (curl_off_t) CURL_MASK_USIZE_T); in curlx_sotouz()
301 DEBUGASSERT((size_t) sznum <= (size_t) CURL_MASK_SINT); in curlx_sztosi()
333 size_t curlx_sitouz(int sinum) in curlx_sitouz()
341 return (size_t) sinum; in curlx_sitouz()
350 ssize_t curlx_read(int fd, void *buf, size_t count) in curlx_read()
355 ssize_t curlx_write(int fd, const void *buf, size_t count) in curlx_write()