HomeSort by relevance Sort by last modified time
    Searched refs:nbytes (Results 1 - 25 of 146) sorted by null

1 2 3 4 5 6

  /external/dropbear/libtomcrypt/src/pk/asn1/der/bit/
der_length_bit_string.c 27 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;
  /system/core/sh/
machdep.h 47 #define SHELL_ALIGN(nbytes) (((nbytes) + SHELL_SIZE) & ~SHELL_SIZE)
memalloc.c 59 ckmalloc(int nbytes)
63 p = malloc(nbytes);
75 ckrealloc(pointer p, int nbytes)
77 p = realloc(p, nbytes);
124 stalloc(int nbytes)
128 nbytes = SHELL_ALIGN(nbytes);
129 if (nbytes > stacknleft) {
133 blocksize = nbytes;
145 stacknxt += nbytes;
    [all...]
  /bionic/libc/unistd/
pread.c 31 ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset)
33 return pread64(fd, buf, nbytes, (off64_t)offset);
pwrite.c 31 ssize_t pwrite(int fd, const void *buf, size_t nbytes, off_t offset)
33 return pwrite64(fd, buf, nbytes, (off64_t)offset);
  /external/valgrind/main/perf/
heap.c 12 int i, j, nbytes = 0; local
24 arr[j] = malloc(nbytes);
28 nbytes += 8;
29 if (nbytes > 32)
30 nbytes = 0;
  /libcore/luni/src/main/java/java/util/zip/
Checksum.java 45 * @param nbytes
48 public void update(byte[] buf, int off, int nbytes);
CheckedOutputStream.java 81 * @param nbytes
87 public void write(byte[] buf, int off, int nbytes) throws IOException {
88 out.write(buf, off, nbytes);
89 check.update(buf, off, nbytes);
  /external/elfutils/libasm/
asm_addsleb128.c 66 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;
asm_adduleb128.c 62 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;
  /external/valgrind/main/memcheck/tests/
malloc2.c 15 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++)
writev.c 27 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/expat/xmlwf/
readfilemap.c 48 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);
unixfilemap.c 26 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);
  /external/bison/lib/
mbswidth.h 54 /* Returns the number of screen columns needed for the NBYTES bytes
56 extern int mbsnwidth (const char *buf, size_t nbytes, int flags);
  /frameworks/base/include/utils/
Compat.h 35 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) {
36 return pread(fd, buf, nbytes, offset);
  /external/valgrind/main/coregrind/m_replacemalloc/
replacemalloc_core.c 78 void* VG_(cli_malloc) ( SizeT align, SizeT nbytes )
84 nbytes );
87 align, nbytes );
  /external/speex/libspeex/
kiss_fft.h 28 #define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes)
  /device/google/accessory/arduino/USB_Host_Shield/
Usb.h 133 byte ctrlReq( byte addr, byte ep, byte bmReqType, byte bRequest, byte wValLo, byte wValHi, unsigned int wInd, unsigned int nbytes, char* dataptr, unsigned int nak_limit = USB_NAK_LIMIT );
135 byte getDevDescr( byte addr, byte ep, unsigned int nbytes, char* dataptr, unsigned int nak_limit = USB_NAK_LIMIT );
136 byte getConfDescr( byte addr, byte ep, unsigned int nbytes, byte conf, char* dataptr, unsigned int nak_limit = USB_NAK_LIMIT );
137 byte getStrDescr( byte addr, byte ep, unsigned int nbytes, byte index, unsigned int langid, char* dataptr, unsigned int nak_limit = USB_NAK_LIMIT );
143 byte getReportDescr( byte addr, byte ep, unsigned int nbytes, char* dataptr, unsigned int nak_limit = USB_NAK_LIMIT );
144 byte setReport( byte addr, byte ep, unsigned int nbytes, byte interface, byte report_type, byte report_id, char* dataptr, unsigned int nak_limit = USB_NAK_LIMIT );
145 byte getReport( byte addr, byte ep, unsigned int nbytes, byte interface, byte report_type, byte report_id, char* dataptr, unsigned int nak_limit = USB_NAK_LIMIT );
149 byte ctrlData( byte addr, byte ep, unsigned int nbytes, char* dataptr, boolean direction, unsigned int nak_limit = USB_NAK_LIMIT );
151 byte inTransfer( byte addr, byte ep, unsigned int nbytes, char* data, unsigned int nak_limit = USB_NAK_LIMIT );
152 int newInTransfer( byte addr, byte ep, unsigned int nbytes, char* data, unsigned int nak_limit = USB_NAK_LIMIT)
    [all...]
  /external/oprofile/libutil++/
bfd_spu_support.cpp 69 file_ptr nbytes, file_ptr offset)
74 nbytes = fread(buf, sizeof(char), nbytes, my_stream->stream);
79 return nbytes;
  /external/valgrind/main/VEX/priv/
main_globals.c 53 void (*vex_log_bytes) ( HChar*, Int nbytes ) = NULL;
main_globals.h 54 extern void (*vex_log_bytes) ( HChar*, Int nbytes );
  /bootable/recovery/mtdutils/
mounts.c 65 ssize_t nbytes; local
93 nbytes = read(fd, buf, sizeof(buf) - 1);
95 if (nbytes < 0) {
98 buf[nbytes] = '\0';
115 while (nbytes > 0) {
145 while (nbytes > 0 && *bufp != '\n') {
147 nbytes--;
149 if (nbytes > 0) {
151 nbytes--;
  /external/bluetooth/glib/tests/
gio-test.c 67 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, nbytes)
    [all...]
  /sdk/emulator/qtools/
decoder.cpp 150 int nbytes = kBufSize - len; local
151 int rval = fread(buf_ + len, 1, nbytes, fstream_);
152 if (rval < nbytes) {
170 int nbytes = end_ - next_; local
171 if (nbytes == 0) {
173 nbytes = end_ - next_;
174 if (nbytes == 0)
177 if (nbytes > len)
178 nbytes = len;
179 memcpy(dest, next_, nbytes);
    [all...]

Completed in 408 milliseconds

1 2 3 4 5 6