/third_party/iowow/src/utils/ |
D | iwpool.c | 28 IWPOOL *iwpool_create(size_t siz) { in iwpool_create() argument 30 siz = siz < 1 ? IWPOOL_POOL_SIZ : siz; in iwpool_create() 31 siz = IW_ROUNDUP(siz, IWPOOL_UNIT_ALIGN_SIZE); in iwpool_create() 40 pool->unit->heap = malloc(siz); in iwpool_create() 44 pool->asiz = siz; in iwpool_create() 67 IW_INLINE int iwpool_extend(IWPOOL *pool, size_t siz) { in iwpool_extend() argument 72 siz = IW_ROUNDUP(siz, IWPOOL_UNIT_ALIGN_SIZE); in iwpool_extend() 73 nunit->heap = malloc(siz); in iwpool_extend() 82 pool->asiz = siz; in iwpool_extend() 86 void *iwpool_alloc(size_t siz, IWPOOL *pool) { in iwpool_alloc() argument [all …]
|
D | iwpool.h | 50 IW_EXPORT IWPOOL *iwpool_create(size_t siz); 65 IW_EXPORT void *iwpool_alloc(size_t siz, IWPOOL *pool); 75 IW_EXPORT void *iwpool_calloc(size_t siz, IWPOOL *pool);
|
D | iwxstr.c | 20 IWXSTR *iwxstr_new2(size_t siz) { in iwxstr_new2() argument 21 if (!siz) siz = IWXSTR_AUNIT; in iwxstr_new2() 24 xstr->ptr = malloc(siz); in iwxstr_new2() 30 xstr->asize = siz; in iwxstr_new2()
|
/third_party/gstreamer/gstplugins_bad/gst/jp2kdecimator/ |
D | jp2kcodestream.c | 86 it->xr = xr = it->header->siz.components[it->cur_component].xr; in packet_iterator_changed_resolution_or_component() 87 it->yr = yr = it->header->siz.components[it->cur_component].yr; in packet_iterator_changed_resolution_or_component() 418 it->n_components = header->siz.n_components; in init_packet_iterator() 433 xr = header->siz.components[i].xr; in init_packet_iterator() 434 yr = header->siz.components[i].yr; in init_packet_iterator() 482 ImageSize * siz, guint16 length) in parse_siz() argument 491 siz->caps = gst_byte_reader_get_uint16_be_unchecked (reader); in parse_siz() 492 siz->x = gst_byte_reader_get_uint32_be_unchecked (reader); in parse_siz() 493 siz->y = gst_byte_reader_get_uint32_be_unchecked (reader); in parse_siz() 494 siz->xo = gst_byte_reader_get_uint32_be_unchecked (reader); in parse_siz() [all …]
|
/third_party/iowow/src/platform/ |
D | iwp.c | 76 iwrc iwp_copy_bytes(HANDLE fh, off_t off, size_t siz, off_t noff) { in iwp_copy_bytes() argument 80 int overlap = IW_RANGES_OVERLAP(off, off + siz, noff, noff + siz); in iwp_copy_bytes() 90 if (siz > sizeof(buf)) { in iwp_copy_bytes() 91 posix_fadvise(fh, off, siz, POSIX_FADV_SEQUENTIAL); in iwp_copy_bytes() 94 while (pos < siz) { in iwp_copy_bytes() 95 rc = iwp_pread(fh, off + pos, buf, MIN(sizeof(buf), (siz - pos)), &sp); in iwp_copy_bytes() 111 if (siz > sizeof(buf)) { in iwp_copy_bytes() 112 posix_fadvise(fh, off, siz, POSIX_FADV_NORMAL); in iwp_copy_bytes()
|
D | iwp.h | 172 IW_EXPORT iwrc iwp_pread(HANDLE fh, off_t off, void *buf, size_t siz, size_t *sp); 186 IW_EXPORT iwrc iwp_pwrite(HANDLE fh, off_t off, const void *buf, size_t siz, size_t *sp); 201 off_t off, size_t siz,
|
/third_party/mksh/ |
D | strlcpy.c | 30 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument 34 if (siz == 0) in strlcpy() 38 while (--siz && (*dst++ = *s++)) in strlcpy() 42 if (siz == 0) { in strlcpy()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | regstrlcpy.c | 29 llvm_strlcpy(char *dst, const char *src, size_t siz) in llvm_strlcpy() argument 33 size_t n = siz; in llvm_strlcpy() 45 if (siz != 0) in llvm_strlcpy()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | regstrlcpy.c | 29 llvm_strlcpy(char *dst, const char *src, size_t siz) in llvm_strlcpy() argument 33 size_t n = siz; in llvm_strlcpy() 45 if (siz != 0) in llvm_strlcpy()
|
/third_party/iowow/src/fs/ |
D | iwexfile.c | 275 static iwrc _exfile_write(struct IWFS_EXT *f, off_t off, const void *buf, size_t siz, size_t *sp) { in _exfile_write() argument 278 off_t end = off + siz; in _exfile_write() 279 off_t wp = siz, len; in _exfile_write() 285 if (impl->maxoff && off + siz > impl->maxoff) { in _exfile_write() 307 rc = impl->file.write(&impl->file, off, (const char *) buf + (siz - wp), (size_t) len, sp); in _exfile_write() 315 … rc = impl->dlsnr->onwrite(impl->dlsnr, off - s->off, (const char *) buf + (siz - wp), len, 0); in _exfile_write() 318 memcpy(s->mmap + (off - s->off), (const char *) buf + (siz - wp), (size_t) len); in _exfile_write() 325 rc = impl->file.write(&impl->file, off, (const char *) buf + (siz - wp), (size_t) wp, sp); in _exfile_write() 329 *sp = siz - wp; in _exfile_write() 339 static iwrc _exfile_read(struct IWFS_EXT *f, off_t off, void *buf, size_t siz, size_t *sp) { in _exfile_read() argument [all …]
|
D | iwfile.c | 47 static iwrc _iwfs_write(struct IWFS_FILE *f, off_t off, const void *buf, size_t siz, size_t *sp) { in _iwfs_write() argument 56 iwrc rc = iwp_pwrite(impl->fh, off, buf, siz, sp); in _iwfs_write() 58 rc = impl->opts.dlsnr->onwrite(impl->opts.dlsnr, off, buf, siz, 0); in _iwfs_write() 63 static iwrc _iwfs_read(struct IWFS_FILE *f, off_t off, void *buf, size_t siz, size_t *sp) { in _iwfs_read() argument 69 return iwp_pread(impl->fh, off, buf, siz, sp); in _iwfs_read() 138 static iwrc _iwfs_copy(struct IWFS_FILE *f, off_t off, size_t siz, off_t noff) { in _iwfs_copy() argument 147 iwrc rc = iwp_copy_bytes(impl->fh, off, siz, noff); in _iwfs_copy() 149 rc = impl->opts.dlsnr->oncopy(impl->opts.dlsnr, off, siz, noff, 0); in _iwfs_copy()
|
D | iwfile.h | 147 iwrc(*write)(struct IWFS_FILE *f, off_t off, const void *buf, size_t siz, size_t *sp); 159 iwrc(*read)(struct IWFS_FILE *f, off_t off, void *buf, size_t siz, size_t *sp); 191 iwrc(*copy)(struct IWFS_FILE *f, off_t off, size_t siz, off_t noff);
|
D | iwfsmfile.h | 266 iwrc(*writehdr)(struct IWFS_FSM *f, off_t off, const void *buf, off_t siz); 278 iwrc(*readhdr)(struct IWFS_FSM *f, off_t off, void *buf, off_t siz); 333 iwrc(*write)(struct IWFS_FSM *f, off_t off, const void *buf, size_t siz, 337 iwrc(*read)(struct IWFS_FSM *f, off_t off, void *buf, size_t siz,
|
D | iwexfile.h | 288 iwrc(*write)(struct IWFS_EXT *f, off_t off, const void *buf, size_t siz, 292 iwrc(*read)(struct IWFS_EXT *f, off_t off, void *buf, size_t siz, 305 iwrc(*copy)(struct IWFS_EXT *f, off_t off, size_t siz, off_t noff);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | random.c | 183 size_t siz, i; in random_get_bytes() 188 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; in random_get_bytes() 189 for (i = 0; i < siz; i++) in random_get_bytes() 191 left -= siz; in random_get_bytes() 199 size_t siz, i; in random_get_bytes() 208 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; in random_get_bytes() 209 for (i = 0; i < siz; i++) in random_get_bytes() 211 left -= siz; in random_get_bytes()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | random.c | 183 size_t siz, i; in random_get_bytes() 188 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; in random_get_bytes() 189 for (i = 0; i < siz; i++) in random_get_bytes() 191 left -= siz; in random_get_bytes() 199 size_t siz, i; in random_get_bytes() 208 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; in random_get_bytes() 209 for (i = 0; i < siz; i++) in random_get_bytes() 211 left -= siz; in random_get_bytes()
|
/third_party/boost/boost/uuid/detail/ |
D | random_provider_getrandom.ipp | 42 //! \param[in] siz the number of bytes to acquire 43 void get_random_bytes(void *buf, std::size_t siz) 46 while (offset < siz) 48 ssize_t sz = get_random(static_cast< char* >(buf) + offset, siz - offset, 0u);
|
D | random_provider_arc4random.ipp | 24 //! \param[in] siz the number of bytes to acquire 25 void get_random_bytes(void *buf, std::size_t siz) 27 arc4random_buf(buf, siz);
|
D | random_provider_getentropy.ipp | 26 //! \param[in] siz the number of bytes to acquire 27 void get_random_bytes(void *buf, std::size_t siz) 29 int res = getentropy(buf, siz);
|
D | random_provider_posix.ipp | 84 //! \param[in] siz the number of bytes to acquire 85 void get_random_bytes(void *buf, std::size_t siz) 88 while (offset < siz) 91 fd_, static_cast<char *>(buf) + offset, siz - offset);
|
D | random_provider_bcrypt.ipp | 76 //! \param[in] siz the number of bytes to acquire 77 void get_random_bytes(void *buf, std::size_t siz) 83 boost::numeric_cast<boost::winapi::ULONG_>(siz),
|
D | random_provider_wincrypt.ipp | 84 //! \param[in] siz the number of bytes to acquire 85 void get_random_bytes(void *buf, std::size_t siz) 89 boost::numeric_cast<boost::winapi::DWORD_>(siz),
|
/third_party/boost/libs/uuid/test/ |
D | mock_random.hpp | 257 ssize_t mockread(int fd, void *buf, size_t siz) in mockread() argument 265 if (siz < 4) { return boost::numeric_cast<ssize_t>(siz); } in mockread() 266 if (siz > 4) { throw std::logic_error("unexpected siz"); } in mockread()
|
/third_party/openssl/crypto/ |
D | o_str.c | 57 void *CRYPTO_memdup(const void *data, size_t siz, const char* file, int line) in CRYPTO_memdup() argument 61 if (data == NULL || siz >= INT_MAX) in CRYPTO_memdup() 64 ret = CRYPTO_malloc(siz, file, line); in CRYPTO_memdup() 69 return memcpy(ret, data, siz); in CRYPTO_memdup()
|
/third_party/iowow/src/platform/win32/ |
D | win32.c | 198 iwrc iwp_pread(HANDLE fh, off_t off, void *buf, size_t siz, size_t *sp) { in iwp_pread() argument 211 if (!ReadFile(fh, buf, siz, &rdb, &offset)) { in iwp_pread() 224 iwrc iwp_read(HANDLE fh, void *buf, size_t siz, size_t *sp) { in iwp_read() argument 232 if (!ReadFile(fh, buf, siz, &rdb, NULL)) { in iwp_read() 245 iwrc iwp_pwrite(HANDLE fh, off_t off, const void *buf, size_t siz, size_t *sp) { in iwp_pwrite() argument 258 if (!WriteFile(fh, buf, siz, &wrb, &offset)) { in iwp_pwrite()
|