/external/dropbear/ |
D | circbuffer.c | 33 circbuffer *cbuf = NULL; in cbuf_new() local 39 cbuf = (circbuffer*)m_malloc(sizeof(circbuffer)); in cbuf_new() 40 cbuf->data = (unsigned char*)m_malloc(size); in cbuf_new() 41 cbuf->used = 0; in cbuf_new() 42 cbuf->readpos = 0; in cbuf_new() 43 cbuf->writepos = 0; in cbuf_new() 44 cbuf->size = size; in cbuf_new() 46 return cbuf; in cbuf_new() 49 void cbuf_free(circbuffer * cbuf) { in cbuf_free() argument 51 m_free(cbuf->data); in cbuf_free() [all …]
|
D | circbuffer.h | 39 void cbuf_free(circbuffer * cbuf); 41 unsigned int cbuf_getused(circbuffer * cbuf); /* how much data stored */ 42 unsigned int cbuf_getavail(circbuffer * cbuf); /* how much we can write */ 43 unsigned int cbuf_readlen(circbuffer *cbuf); /* max linear read len */ 44 unsigned int cbuf_writelen(circbuffer *cbuf); /* max linear write len */ 46 unsigned char* cbuf_readptr(circbuffer *cbuf, unsigned int len); 47 unsigned char* cbuf_writeptr(circbuffer *cbuf, unsigned int len); 48 void cbuf_incrwrite(circbuffer *cbuf, unsigned int len); 49 void cbuf_incrread(circbuffer *cbuf, unsigned int len);
|
D | common-channel.c | 43 static void writechannel(struct Channel* channel, int fd, circbuffer *cbuf); 393 static void writechannel(struct Channel* channel, int fd, circbuffer *cbuf) { in writechannel() argument 399 maxlen = cbuf_readlen(cbuf); in writechannel() 402 len = write(fd, cbuf_readptr(cbuf, maxlen), maxlen); in writechannel() 413 cbuf_incrread(cbuf, len); in writechannel() 664 circbuffer * cbuf) { in common_recv_msg_channel_data() argument 687 maxdata = cbuf_getavail(cbuf); in common_recv_msg_channel_data() 701 buflen = cbuf_writelen(cbuf); in common_recv_msg_channel_data() 704 memcpy(cbuf_writeptr(cbuf, buflen), in common_recv_msg_channel_data() 706 cbuf_incrwrite(cbuf, buflen); in common_recv_msg_channel_data()
|
/external/qemu/ |
D | charpipe.c | 277 CharBuffer* cbuf = cs->opaque; in charbuffer_close() local 279 while (cbuf->bip_first) { in charbuffer_close() 280 BipBuffer* bip = cbuf->bip_first; in charbuffer_close() 281 cbuf->bip_first = bip->next; in charbuffer_close() 284 cbuf->bip_last = NULL; in charbuffer_close() 285 cbuf->endpoint = NULL; in charbuffer_close() 287 if (cbuf->endpoint != NULL) { in charbuffer_close() 288 qemu_chr_close(cbuf->endpoint); in charbuffer_close() 289 cbuf->endpoint = NULL; in charbuffer_close() 296 CharBuffer* cbuf = cs->opaque; in charbuffer_write() local [all …]
|
/external/guava/guava/src/com/google/common/io/ |
D | LineBuffer.java | 50 protected void add(char[] cbuf, int off, int len) throws IOException { in add() argument 54 if (finishLine(cbuf[pos] == '\n')) { in add() 61 switch (cbuf[pos]) { in add() 63 line.append(cbuf, start, pos - start); in add() 66 if (finishLine(cbuf[pos + 1] == '\n')) { in add() 74 line.append(cbuf, start, pos - start); in add() 80 line.append(cbuf, start, off + len - start); in add()
|
D | MultiReader.java | 51 @Override public int read(char cbuf[], int off, int len) throws IOException { in read() argument 55 int result = current.read(cbuf, off, len); in read() 58 return read(cbuf, off, len); in read()
|
D | LineReader.java | 41 private final CharBuffer cbuf = CharBuffer.wrap(buf); field in LineReader 73 cbuf.clear(); in readLine() 78 : readable.read(cbuf); in readLine()
|
D | AppendableWriter.java | 50 @Override public void write(char cbuf[], int off, int len) in write() argument 55 target.append(new String(cbuf, off, len)); in write()
|
/external/smack/src/org/jivesoftware/smack/util/ |
D | ObservableWriter.java | 41 public void write(char cbuf[], int off, int len) throws IOException { in write() argument 42 wrappedWriter.write(cbuf, off, len); in write() 43 String str = new String(cbuf, off, len); in write() 59 public void write(char cbuf[]) throws IOException { in write() argument 60 wrappedWriter.write(cbuf); in write() 61 String str = new String(cbuf); in write()
|
D | ObservableReader.java | 41 public int read(char[] cbuf, int off, int len) throws IOException { in read() argument 42 int count = wrappedReader.read(cbuf, off, len); in read() 44 String str = new String(cbuf, off, count); in read() 66 public int read(char cbuf[]) throws IOException { in read() argument 67 return wrappedReader.read(cbuf); in read()
|
/external/mksh/src/ |
D | edit.c | 3331 char *cbuf; member 3511 es->cbuf = buf; in x_vi() 3595 if (es->cbuf != buf) in x_vi() 3596 memmove(buf, es->cbuf, es->linelen); in x_vi() 3671 es->cbuf[es->cursor++] = ch; in vi_hook() 3773 new_es.cbuf = locpat; in vi_hook() 3795 es->cbuf[es->linelen++] = '^'; in vi_hook() 3796 es->cbuf[es->linelen++] = ch ^ '@'; in vi_hook() 3800 es->cbuf[es->linelen++] = ch; in vi_hook() 3907 es->cbuf[es->cursor] = undo->cbuf[es->cursor]; in vi_insert() [all …]
|
/external/proguard/src/proguard/io/ |
D | ManifestRewriter.java | 122 public int read(char[] cbuf, int off, int len) throws IOException in read() argument 134 cbuf[off + count++] = (char)c; in read() 202 public void write(char[] cbuf, int off, int len) throws IOException in write() argument 206 write(cbuf[off + count]); in write()
|
/external/icu4c/i18n/ |
D | name2uni.cpp | 122 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate() local 123 if (cbuf == NULL) { in handleTransliterate() 191 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate() 194 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status); in handleTransliterate() 251 uprv_free(cbuf); in handleTransliterate()
|
/external/icu4c/tools/toolutil/ |
D | ucbuf.c | 166 char* cbuf = carr; in ucbuf_fillucbuf() local 185 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset); in ucbuf_fillucbuf() 190 cbuf = (char*)uprv_malloc(cbufSize); in ucbuf_fillucbuf() 191 if (cbuf == NULL) { in ucbuf_fillucbuf() 195 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize); in ucbuf_fillucbuf() 218 source = cbuf; in ucbuf_fillucbuf() 246 pos = (int32_t)(source - cbuf - len); in ucbuf_fillucbuf() 252 memcpy(preContext,cbuf+start,stop-start); in ucbuf_fillucbuf() 258 …top = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-c… in ucbuf_fillucbuf() 286 source = cbuf; in ucbuf_fillucbuf() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | LineBufferTest.java | 132 public int read(CharBuffer cbuf) throws IOException { in getChunkedReadable() 133 return reader.read(cbuf); in getChunkedReadable() 140 @Override public int read(char[] cbuf, int off, int len) 142 return super.read(cbuf, off, Math.min(chunk, len));
|
/external/oprofile/daemon/ |
D | oprofiled.c | 165 char * cbuf; in opd_write_abi() local 167 cbuf = xmalloc(strlen(op_session_dir) + 5); in opd_write_abi() 168 strcpy(cbuf, op_session_dir); in opd_write_abi() 169 strcat(cbuf, "/abi"); in opd_write_abi() 170 op_write_abi_to_file(cbuf); in opd_write_abi() 171 free(cbuf); in opd_write_abi()
|
/external/opencv/cv/src/ |
D | cvstereobm.cpp | 197 uchar *cbuf0, *cbuf; in icvFindStereoCorrespondenceBM_SSE2() local 223 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2() 227 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM_SSE2() 233 cbuf[d] = (uchar)diff; in icvFindStereoCorrespondenceBM_SSE2() 254 uchar* cbuf = cbuf0 + ((x1 + wsz2 + 1) % (wsz + 1))*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2() local 260 for( y = -dy0; y < height + dy1; y++, cbuf += ndisp, cbuf_sub += ndisp, in icvFindStereoCorrespondenceBM_SSE2() 273 _mm_store_si128((__m128i*)(cbuf + d), diff); in icvFindStereoCorrespondenceBM_SSE2() 404 uchar *cbuf0, *cbuf; in icvFindStereoCorrespondenceBM() local 429 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM() 433 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM() [all …]
|
/external/openssl/apps/ |
D | s_client.c | 567 char *cbuf=NULL,*sbuf=NULL,*mbuf=NULL; in MAIN() local 647 if ( ((cbuf=OPENSSL_malloc(BUFSIZZ)) == NULL) || in MAIN() 1677 k=SSL_write(con,&(cbuf[cbuf_off]), in MAIN() 1845 i=raw_read_stdin(cbuf,BUFSIZZ/2); in MAIN() 1849 if (cbuf[j] == '\n') in MAIN() 1853 cbuf[j+lf_num] = cbuf[j]; in MAIN() 1854 if (cbuf[j] == '\n') in MAIN() 1858 cbuf[j+lf_num] = '\r'; in MAIN() 1864 i=raw_read_stdin(cbuf,BUFSIZZ); in MAIN() 1866 if ((!c_ign_eof) && ((i <= 0) || (cbuf[0] == 'Q'))) in MAIN() [all …]
|
/external/openssl/ssl/ |
D | ssltest.c | 1239 MS_STATIC char cbuf[1024*8]; in doit_biopair() local 1243 memset(cbuf, 0, sizeof(cbuf)); in doit_biopair() 1254 if (cw_num > (long)sizeof cbuf) in doit_biopair() 1255 i = sizeof cbuf; in doit_biopair() 1258 r = BIO_write(c_ssl_bio, cbuf, i); in doit_biopair() 1288 r = BIO_read(c_ssl_bio, cbuf, sizeof(cbuf)); in doit_biopair() 1559 MS_STATIC char cbuf[1024*8],sbuf[1024*8]; in doit() local 1573 memset(cbuf,0,sizeof(cbuf)); in doit() 1648 j = (cw_num > (long)sizeof(cbuf)) ? in doit() 1649 (int)sizeof(cbuf) : (int)cw_num; in doit() [all …]
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/ |
D | IndentingWriter.java | 147 public void write(char[] cbuf, int off, int len) throws IOException { in write() argument 150 write(cbuf[off]); in write()
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
D | IndentingWriter.java | 139 public void write(char[] cbuf, int off, int len) throws IOException { in write() argument 142 write(cbuf[off]); in write()
|
/external/e2fsprogs/debugfs/ |
D | htree.c | 163 char *cbuf; in htree_dump_int_block() local 167 cbuf = malloc(fs->blocksize); in htree_dump_int_block() 168 if (!cbuf) { in htree_dump_int_block() 189 cbuf, level); in htree_dump_int_block() 191 free(cbuf); in htree_dump_int_block()
|
/external/icu4c/test/cintltst/ |
D | cdattst.c | 795 char cbuf[256]; in TestDateFormatCalendar() local 866 u_austrcpy(cbuf, buf); in TestDateFormatCalendar() 869 log_verbose("Ok: Parsed result: %s\n", cbuf); in TestDateFormatCalendar() 871 log_err("FAIL: Parsed result: %s, exp 4/5/2001 5:45 PM\n", cbuf); in TestDateFormatCalendar() 1053 UChar* buf, int32_t buflen, char* cbuf, in _aux1ExtremeDates() argument 1057 u_austrncpy(cbuf, buf, buflen); in _aux1ExtremeDates() 1059 log_err("FAIL: udat_format(%g) => \"%s\"\n", date, cbuf); in _aux1ExtremeDates() 1061 log_verbose("udat_format(%g) => \"%s\"\n", date, cbuf); in _aux1ExtremeDates() 1073 UChar* buf, int32_t buflen, char* cbuf, in _aux2ExtremeDates() argument 1082 _aux1ExtremeDates(fmt, mid, buf, buflen, cbuf, ec) && in _aux2ExtremeDates() [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | FixASCIIControlsReader.java | 57 public int read(char[] cbuf, int off, int len) throws IOException in read() argument 78 cbuf[pos++] = c; in read()
|
/external/svox/pico/lib/ |
D | picoacph.c | 145 picoos_uint8 cbuf[PICOACPH_MAXSIZE_CBUF]; member 193 acph->cbuf[i] = 0; in acphInitialize() 337 ch = acph->cbuf[acph->headx[ind].cind + i]; in acphGetNrSylls() 656 if (picoktab_isPrimstress(acph->tabphones, acph->cbuf[pind])) { in acphAccNrSyllParts() 658 } else if (picoktab_isSyllbound(acph->tabphones, acph->cbuf[pind])) { in acphAccNrSyllParts() 775 if (picoktab_isPrimstress(acph->tabphones, acph->cbuf[pos + i]) || in acphIsWordWithoutStress() 776 picoktab_isSecstress(acph->tabphones, acph->cbuf[pos + i])) { in acphIsWordWithoutStress() 1081 &(acph->cbuf[acph->cbufLen]), acph->cbufBufSize in acphStep() 1227 acph->cbuf[acph->headx[i].cind+j])); in acphStep() 1230 acph->cbuf[acph->headx[i].cind+j])); in acphStep() [all …]
|