Searched defs:nbytes (Results 1 - 25 of 66) 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.c74 size_t nbytes = dest - tmpbuf; local
77 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
82 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
85 asmscn->content->len += nbytes;
88 asmscn->offset += nbytes;
H A Dasm_addsleb128.c78 size_t nbytes = dest - tmpbuf; local
81 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
86 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
89 asmscn->content->len += nbytes;
92 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
69 nbytes = sb.st_size;
70 /* malloc will return NULL with nbytes == 0, handle files with size 0 */
71 if (nbytes == 0) {
77 p = malloc(nbytes);
83 n = read(fd, p, nbytes);
90 if (n != nbytes) {
96 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/libnfc-nci/halimpl/bcm2079x/adaptation/
H A DNonVolatileStore.cpp46 ** nbytes - number of bytes to read into the buffer.
58 void nfc_hal_nv_co_read (UINT8 *p_buf, UINT16 nbytes, UINT8 block) argument
71 ALOGD ("%s: buffer len=%u; file=%s", __FUNCTION__, nbytes, filename);
75 size_t actualRead = read (fileStream, p_buf, nbytes);
104 ** nbytes - number of bytes to write out to the file.
114 void nfc_hal_nv_co_write (const UINT8 *p_buf, UINT16 nbytes, UINT8 block) argument
127 ALOGD ("%s: bytes=%u; file=%s", __FUNCTION__, nbytes, filename);
132 size_t actualWritten = write (fileStream, p_buf, nbytes);
/external/qemu/distrib/jpeg-6b/
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 Dwritev1.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/llvm/lib/Target/NVPTX/
H A DNVPTXutil.cpp37 static int encode_leb128(uint64_t val, int *nbytes, argument
56 *nbytes = a - space;
74 int nbytes; local
76 int retval = encode_leb128(temp64.x, &nbytes, encoded, 16);
82 assert(nbytes <= 8 &&
86 for (int i=0; i<nbytes; ++i)
/external/blktrace/btreplay/
H A Dbtrecord.h43 * @nbytes: Number of bytes to process
48 __u64 nbytes; member in struct:io_pkt
/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/aac/libMpegTPEnc/src/
H A Dtpenc_lib.cpp462 TRANSPORTENC_ERROR transportEnc_GetFrame(HANDLE_TRANSPORTENC hTpEnc, int *nbytes) argument
470 *nbytes = hTpEnc->bsBufferSize;
471 transportEnc_LatmGetFrame(&hTpEnc->writer.latm, hBs, nbytes);
475 *nbytes = (FDKgetValidBits(hBs) + 7)>>3;
478 *nbytes = 0;
483 *nbytes = (FDKgetValidBits(hBs) + 7)>>3;
488 *nbytes = ((FDKgetValidBits(hBs)-hTpEnc->writer.raw.prevBits) + 7)>>3;

Completed in 511 milliseconds

123