/external/dropbear/ |
circbuffer.c | 33 circbuffer *cbuf = NULL; local 36 dropbear_exit("bad cbuf size"); 39 cbuf = (circbuffer*)m_malloc(sizeof(circbuffer)); 40 cbuf->data = (unsigned char*)m_malloc(size); 41 cbuf->used = 0; 42 cbuf->readpos = 0; 43 cbuf->writepos = 0; 44 cbuf->size = size; 46 return cbuf; 49 void cbuf_free(circbuffer * cbuf) { [all...] |
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);
|
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) { 399 maxlen = cbuf_readlen(cbuf); 402 len = write(fd, cbuf_readptr(cbuf, maxlen), maxlen); 413 cbuf_incrread(cbuf, len); 664 circbuffer * cbuf) { 687 maxdata = cbuf_getavail(cbuf); 701 buflen = cbuf_writelen(cbuf); 704 memcpy(cbuf_writeptr(cbuf, buflen), 706 cbuf_incrwrite(cbuf, buflen) [all...] |
/external/guava/src/com/google/common/io/ |
LineBuffer.java | 44 * @param cbuf the character buffer to process 51 protected void add(char[] cbuf, int off, int len) throws IOException { 55 if (finishLine(cbuf[pos] == '\n')) { 62 switch (cbuf[pos]) { 64 line.append(cbuf, start, pos - start); 67 if (finishLine(cbuf[pos + 1] == '\n')) { 75 line.append(cbuf, start, pos - start); 81 line.append(cbuf, start, off + len - start);
|
LineReader.java | 39 private final CharBuffer cbuf = CharBuffer.wrap(buf); field in class:LineReader 71 cbuf.clear(); 76 : readable.read(cbuf);
|
MultiReader.java | 51 @Override public int read(char cbuf[], int off, int len) throws IOException { 55 int result = current.read(cbuf, off, len); 58 return read(cbuf, off, len);
|
AppendableWriter.java | 50 @Override public void write(char cbuf[], int off, int len) 54 // than wrapping cbuf in a light-weight CharSequence. 55 target.append(new String(cbuf, off, len));
|
/external/qemu/ |
charpipe.c | 277 CharBuffer* cbuf = cs->opaque; local 279 while (cbuf->bip_first) { 280 BipBuffer* bip = cbuf->bip_first; 281 cbuf->bip_first = bip->next; 284 cbuf->bip_last = NULL; 285 cbuf->endpoint = NULL; 287 if (cbuf->endpoint != NULL) { 288 qemu_chr_close(cbuf->endpoint); 289 cbuf->endpoint = NULL; 296 CharBuffer* cbuf = cs->opaque local 389 CharBuffer* cbuf = cs->opaque; local 423 CharBuffer* cbuf = _s_charbuffers; local [all...] |
/dalvik/libcore/luni/src/main/java/java/io/ |
StringWriter.java | 110 * @param cbuf 113 * the index of the first character in {@code cbuf} to write. 121 public void write(char[] cbuf, int offset, int count) { 128 if (cbuf == null) { 131 if ((offset | count) < 0 || count > cbuf.length - offset) { 138 buf.append(cbuf, offset, count);
|
BufferedWriter.java | 195 * {@code cbuf} to this writer. If {@code count} is greater than this 199 * @param cbuf 202 * the start position in {@code cbuf} for retrieving characters. 208 * {@code cbuf}. 213 public void write(char[] cbuf, int offset, int count) throws IOException { 223 if (cbuf == null) { 226 if ((offset | count) < 0 || offset > cbuf.length - count) { 231 out.write(cbuf, offset, count); 239 System.arraycopy(cbuf, offset, this.buf, pos, available); 249 out.write(cbuf, offset, available) [all...] |
/external/proguard/src/proguard/io/ |
ManifestRewriter.java | 122 public int read(char[] cbuf, int off, int len) throws IOException 134 cbuf[off + count++] = (char)c; 202 public void write(char[] cbuf, int off, int len) throws IOException 206 write(cbuf[off + count]);
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
ToastTest.java | 65 char[] cbuf = new char[200]; local 66 while ((len = f.read(cbuf, 0, cbuf.length)) >= 0) { 67 s += String.valueOf(cbuf, 0, len);
|
/external/icu4c/i18n/ |
name2uni.cpp | 120 char* cbuf = (char*) uprv_malloc(maxLen); local 121 if (cbuf == NULL) { 189 name.extract(0, len, cbuf, maxLen, US_INV); 192 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status); 249 uprv_free(cbuf);
|
/dalvik/dx/src/com/android/dx/util/ |
IndentingWriter.java | 139 public void write(char[] cbuf, int off, int len) throws IOException { 142 write(cbuf[off]);
|
/external/icu4c/tools/toolutil/ |
ucbuf.c | 165 char* cbuf = carr; local 184 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset); 189 cbuf = (char*)uprv_malloc(cbufSize); 190 if (cbuf == NULL) { 194 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize); 217 source = cbuf; 245 pos = (int32_t)(source - cbuf - len); 251 memcpy(preContext,cbuf+start,stop-start); 257 stop = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-cbuf)); [all...] |
/external/oprofile/daemon/ |
oprofiled.c | 165 char * cbuf; local 167 cbuf = xmalloc(strlen(op_session_dir) + 5); 168 strcpy(cbuf, op_session_dir); 169 strcat(cbuf, "/abi"); 170 op_write_abi_to_file(cbuf); 171 free(cbuf);
|
/external/e2fsprogs/debugfs/ |
htree.c | 150 char *cbuf; local 154 cbuf = malloc(fs->blocksize); 155 if (!cbuf) { 176 cbuf, level); 178 free(cbuf);
|
/external/openssl/apps/ |
s_client.c | 295 char *cbuf=NULL,*sbuf=NULL,*mbuf=NULL; local 372 if ( ((cbuf=OPENSSL_malloc(BUFSIZZ)) == NULL) || [all...] |
/external/svox/pico/lib/ |
picoacph.c | 72 - cbuf : buffer for item contents (referenced by index in 75 0. bottom up filling of items in headx and cbuf 136 picoos_uint8 inspaceok; /* flag: headx/cbuf has space for an item */ 145 picoos_uint8 cbuf[PICOACPH_MAXSIZE_CBUF]; member in struct:acph_subobj 182 /* init headx, cbuf */ 193 acph->cbuf[i] = 0; 337 ch = acph->cbuf[acph->headx[ind].cind + i]; 656 if (picoktab_isPrimstress(acph->tabphones, acph->cbuf[pind])) { 658 } else if (picoktab_isSyllbound(acph->tabphones, acph->cbuf[pind])) { 775 if (picoktab_isPrimstress(acph->tabphones, acph->cbuf[pos + i]) | [all...] |
picospho.c | 73 * - cbuf : unstructured buffer containing item contents 182 picoos_uint8 cbuf[SPHO_MAXSIZE_CBUF]; member in struct:spho_subobj 267 /* item buffer headx/cbuf */ 405 /* shift relevant data in headx/'cbuf' (between 'readPos' incl and writePos non-incl) to 'start'. 410 /* remember shift parameters for cbuf */ 442 /* shift cbuf */ 444 spho->cbuf[c_i++] = spho->cbuf[c_j++]; 550 content = spho->cbuf + spho->headx[pos].cind; [all...] |
/external/icu4c/test/cintltst/ |
cdattst.c | 771 char cbuf[256]; local 1081 char cbuf[256]; local [all...] |
utransts.c | 491 char *cbuf; local 535 cbuf=aescstrdup(buf, -1); 538 log_verbose("Ok: %s | %s -> %s\n", DATA[i+1], DATA[i], cbuf); 540 log_err("FAIL: %s | %s -> %s, expected %s\n", DATA[i+1], DATA[i], cbuf, DATA[i+2]);
|
/external/openssl/ssl/ |
ssltest.c | 1066 MS_STATIC char cbuf[1024*8]; local 1070 memset(cbuf, 0, sizeof(cbuf)); 1081 if (cw_num > (long)sizeof cbuf) 1082 i = sizeof cbuf; 1085 r = BIO_write(c_ssl_bio, cbuf, i); 1115 r = BIO_read(c_ssl_bio, cbuf, sizeof(cbuf)); 1386 MS_STATIC char cbuf[1024*8],sbuf[1024*8]; local [all...] |
ssl_asn1.c | 101 unsigned char cbuf; local 149 cbuf = (unsigned char)in->compress_meth; 152 a.comp_id.data = &cbuf;
|
/external/ppp/pppd/ |
sys-solaris.c | 2644 struct strbuf cbuf, dbuf; local [all...] |