Searched defs:nbytes (Results 1 - 25 of 55) sorted by relevance

123

/external/dropbear/libtomcrypt/src/pk/asn1/der/bit/
H A Dder_length_bit_string.c27 unsigned long nbytes; local
31 nbytes = (nbits >> 3) + ((nbits & 7) ? 1 : 0) + 1;
33 if (nbytes < 128) {
35 *outlen = 2 + nbytes;
36 } else if (nbytes < 256) {
38 *outlen = 3 + nbytes;
39 } else if (nbytes < 65536) {
41 *outlen = 4 + nbytes;
/external/elfutils/libasm/
H A Dasm_adduleb128.c62 size_t nbytes = dest - tmpbuf; local
65 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
70 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
73 asmscn->content->len += nbytes;
76 asmscn->offset += nbytes;
H A Dasm_addsleb128.c66 size_t nbytes = dest - tmpbuf; local
69 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
74 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
77 asmscn->content->len += nbytes;
80 asmscn->offset += nbytes;
/external/valgrind/main/perf/
H A Dheap.c12 int i, j, nbytes = 0; local
24 arr[j] = malloc(nbytes);
28 nbytes += 8;
29 if (nbytes > 32)
30 nbytes = 0;
/external/expat/xmlwf/
H A Dunixfilemap.c26 size_t nbytes; local
46 nbytes = sb.st_size;
48 if (nbytes == 0) {
54 p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ,
61 processor(p, nbytes, name, arg);
62 munmap((caddr_t)p, nbytes);
H A Dreadfilemap.c48 size_t nbytes; local
67 nbytes = sb.st_size;
68 /* malloc will return NULL with nbytes == 0, handle files with size 0 */
69 if (nbytes == 0) {
75 p = malloc(nbytes);
81 n = read(fd, p, nbytes);
88 if (n != nbytes) {
94 processor(p, nbytes, name, arg);
/external/clang/test/Sema/
H A Ddarwin-align-cast.c18 ssize_t sendFileDescriptor(int fd, void *data, size_t nbytes, int sendfd) { argument
/external/jpeg/
H A Djdatasrc.c93 size_t nbytes; local
95 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE);
97 if (nbytes <= 0) {
104 nbytes = 2;
108 src->pub.bytes_in_buffer = nbytes;
/external/valgrind/main/memcheck/tests/
H A Dmalloc2.c15 int i, j, k, nbytes; local
27 nbytes = 1 + random() % M_TEST_MALLOC;
29 nbytes *= 17;
30 test_arr[j] = malloc( nbytes );
32 for (k = 1; k < nbytes; k++)
H A Dwritev.c27 int nbytes; local
39 } else if ((nbytes = write(fd, buf_list[1], K_1)) != K_1) {
40 fprintf(stderr, "write(2) failed: nbytes = %d, errno = %d\n",
41 nbytes, errno);
62 if ((nbytes = read(fd, buf_list[0], CHUNK)) != 0)
63 fprintf(stderr, "Expected nbytes = 0, got %d\n", nbytes);
/external/bison/lib/
H A Dmbswidth.c108 mbsnwidth (const char *string, size_t nbytes, int flags) argument
111 const char *plimit = p + nbytes;
H A Dobstack.c396 register int nbytes = 0;
400 nbytes += lp->limit - (char *) lp;
402 return nbytes;
393 register int nbytes = 0; local
/external/blktrace/btreplay/
H A Dbtrecord.h43 * @nbytes: Number of bytes to process
48 __u64 nbytes; member in struct:io_pkt
/external/e2fsprogs/e2fsck/
H A Dswapfs.c208 int n, nbytes = (bmap->end - bmap->start + 7) / 8; local
210 for (n = nbytes / sizeof(__u32); n > 0; --n, ++p)
/external/oprofile/libutil++/
H A Dbfd_spu_support.cpp69 file_ptr nbytes, file_ptr offset)
74 nbytes = fread(buf, sizeof(char), nbytes, my_stream->stream);
79 return nbytes;
68 spu_bfd_iovec_pread(bfd * abfd, void * stream, void * buf, file_ptr nbytes, file_ptr offset) argument
/external/webkit/Source/WebCore/platform/audio/mac/
H A DFFTFrameMac.cpp88 unsigned nbytes = sizeof(float) * m_FFTSize; local
89 memcpy(realData(), frame.m_frame.realp, nbytes); local
90 memcpy(imagData(), frame.m_frame.imagp, nbytes); local
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DPipedOutputStreamTest.java62 public String read(int nbytes) { argument
63 byte[] buf = new byte[nbytes];
65 reader.read(buf, 0, nbytes);
H A DPipedInputStreamTest.java42 public PWriter(PipedOutputStream pout, int nbytes) { argument
44 bytes = new byte[nbytes];
/external/chromium/base/
H A Dsha1_portable.cc41 void Update(const void* data, size_t nbytes);
126 void SecureHashAlgorithm::Update(const void* data, size_t nbytes) { argument
128 while (nbytes--) {
/external/libvpx/examples/
H A Dencoder_tmpl.c54 size_t nbytes, to_read; local
58 nbytes = fread(img->planes[0], 1, to_read, f);
59 if(nbytes != to_read) {
61 if(nbytes > 0)
/external/oprofile/libabi/
H A Dopimport.cpp80 size_t nbytes = theabi.need(sz); local
83 if (nbytes == 0)
86 assert(nbytes <= sizeof(T));
88 assert(src + nbytes <= end);
91 cerr << hex << "get " << sz << " = " << nbytes
96 while(nbytes--)
97 targ = (targ << 8) | src[nbytes];
99 for(size_t i = 0; i < nbytes; ++i)
/external/webkit/Source/WebCore/platform/audio/mkl/
H A DFFTFrameMKL.cpp123 unsigned nbytes = sizeof(float) * (m_FFTSize / 2); local
124 memcpy(realData(), frame.realData(), nbytes); local
125 memcpy(imagData(), frame.imagData(), nbytes); local
/external/bluetooth/glib/tests/
H A Dgio-test.c67 guint nbytes,
70 guint left = nbytes;
138 guint nbytes; local
155 g_assert (nb == sizeof (nbytes));
170 error = read_all (fd, channel, (gchar *) &nbytes, sizeof (nbytes), &nb);
185 g_assert (nb == sizeof (nbytes));
187 if (nbytes >= BUFSIZE)
189 g_print ("gio-test: ...from %d: nbytes = %d (%#x)!\n", fd, nbytes, nbyte
64 read_all(int fd, GIOChannel *channel, char *buffer, guint nbytes, guint *bytes_read) argument
[all...]
/external/e2fsprogs/debugfs/
H A Ddump.c107 int nbytes; local
124 nbytes = write(fd, buf, got);
125 if ((unsigned) nbytes != got)
/external/e2fsprogs/lib/ext2fs/
H A Dfileio.c251 unsigned int nbytes, unsigned int *written)
264 while (nbytes > 0) {
271 if (c > nbytes)
272 c = nbytes;
287 nbytes -= c;
250 ext2fs_file_write(ext2_file_t file, const void *buf, unsigned int nbytes, unsigned int *written) argument

Completed in 548 milliseconds

123