Home
last modified time | relevance | path

Searched refs:numbytes (Results 1 - 9 of 9) sorted by relevance

/third_party/node/deps/openssl/openssl/crypto/rand/
H A Drand_egd.c113 int mybuffer, ret = -1, i, numbytes, fd; in RAND_query_egd_bytes() local
183 numbytes = tempbuf[0]; in RAND_query_egd_bytes()
191 i = fread(buf, sizeof(char), numbytes, fp); in RAND_query_egd_bytes()
192 if (i < numbytes) in RAND_query_egd_bytes()
194 ret = numbytes; in RAND_query_egd_bytes()
/third_party/openssl/crypto/rand/
H A Drand_egd.c113 int mybuffer, ret = -1, i, numbytes, fd; in RAND_query_egd_bytes() local
183 numbytes = tempbuf[0]; in RAND_query_egd_bytes()
191 i = fread(buf, sizeof(char), numbytes, fp); in RAND_query_egd_bytes()
192 if (i < numbytes) in RAND_query_egd_bytes()
194 ret = numbytes; in RAND_query_egd_bytes()
/third_party/skia/third_party/externals/angle2/src/third_party/libXNVCtrl/
H A DNVCtrl.c438 int length, numbytes, slop; in XNVCTRLQueryTargetStringAttribute() local
462 numbytes = rep.n; in XNVCTRLQueryTargetStringAttribute()
463 slop = numbytes & 3; in XNVCTRLQueryTargetStringAttribute()
466 *ptr = (char *) Xmalloc(numbytes); in XNVCTRLQueryTargetStringAttribute()
474 _XRead(dpy, (char *) *ptr, numbytes); in XNVCTRLQueryTargetStringAttribute()
982 int length, numbytes, slop; in XNVCTRLQueryTargetBinaryData() local
1006 numbytes = rep.n; in XNVCTRLQueryTargetBinaryData()
1007 slop = numbytes & 3; in XNVCTRLQueryTargetBinaryData()
1010 *ptr = (unsigned char *) Xmalloc(numbytes); in XNVCTRLQueryTargetBinaryData()
1018 _XRead(dpy, (char *) *ptr, numbytes); in XNVCTRLQueryTargetBinaryData()
[all...]
/third_party/backends/backend/
H A Dcanon630u-common.c561 int numbytes, datasize, level = 0, line = 0, pixel = 0; in do_scan() local
610 numbytes = read_bulk_size (s->fd, datasize, 0, ptr, BUFSIZE - level); in do_scan()
611 if (numbytes < 0) in do_scan()
622 line += (numbytes + level) / (s->width * 3); in do_scan()
624 level = (numbytes + level) % (s->width * 3); in do_scan()
627 numbytes -= (line - s->height) * s->width * 3 + level; in do_scan()
629 fwrite (buf, 1, numbytes, fp); in do_scan()
632 memcpy (s->ptr, buf, numbytes); in do_scan()
633 s->ptr += numbytes; in do_scan()
641 ptr += numbytes; /* poin in do_scan()
[all...]
H A Das6e.c303 SANE_Word numbytes; in sane_start() local
312 numbytes = write (s->as6e_params.ctloutpipe, &repeat, sizeof (repeat)); in sane_start()
313 if (numbytes != sizeof (repeat)) in sane_start()
334 numbytes = in sane_start()
336 if (numbytes != sizeof (scan_params)) in sane_start()
/third_party/backends/backend/pixma/
H A Dpixma_bjnp.c671 int numbytes; in udp_command() local
684 if ((numbytes = send (sockfd, command, cmd_len, 0)) != cmd_len) in udp_command()
688 numbytes, cmd_len)); in udp_command()
717 if ((numbytes = recv (sockfd, response, resp_len, 0)) == -1) in udp_command()
725 return numbytes; in udp_command()
2017 int numbytes = 0; in sanei_bjnp_find_devices() local
2220 if ((numbytes = in sanei_bjnp_find_devices()
2231 PDBG (bjnp_hexdump (LOG_DEBUG2, &resp_buf, numbytes)); in sanei_bjnp_find_devices()
2235 if ( (numbytes < (int)sizeof (struct BJNP_command)) || in sanei_bjnp_find_devices()
2245 numbytes, bjnp_i in sanei_bjnp_find_devices()
[all...]
/third_party/python/Lib/
H A Drandom.py804 numbytes = (k + 7) // 8 # bits / 8 and rounded up
805 x = int.from_bytes(_urandom(numbytes))
806 return x >> (numbytes * 8 - k) # trim excess bits
H A Dtarfile.py1265 numbytes = nti(buf[pos + 12:pos + 24])
1268 structs.append((offset, numbytes))
1380 numbytes = nti(buf[pos + 12:pos + 24])
1383 if offset and numbytes:
1384 structs.append((offset, numbytes))
1519 numbytes = []
1527 elif keyword == b"GNU.sparse.numbytes":
1529 numbytes.append(int(value.decode()))
1533 next.sparse = list(zip(offsets, numbytes))
/third_party/curl/lib/
H A Dmime.c762 const char *bytes, size_t numbytes, in readback_bytes()
768 if(numbytes > offset) { in readback_bytes()
769 sz = numbytes - offset; in readback_bytes()
773 sz = offset - numbytes; in readback_bytes()
760 readback_bytes(struct mime_state *state, char *buffer, size_t bufsize, const char *bytes, size_t numbytes, const char *trail, size_t traillen) readback_bytes() argument

Completed in 16 milliseconds