/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...] |
/hardware/broadcom/wlan/bcm4329/src/include/ |
hndrte_cons.h | 43 * input line directly into cbuf and then write the length into vcons_in. 58 * Characters are read one at a time into cbuf until <CR> is received, then 62 char cbuf[CBUF_LEN]; member in struct:__anon9570
|
/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]);
|
/libcore/luni/src/main/java/java/io/ |
BufferedWriter.java | 171 * {@code cbuf} to this writer. If {@code count} is greater than this 175 * @param cbuf 178 * the start position in {@code cbuf} for retrieving characters. 184 * {@code cbuf}. 189 public void write(char[] cbuf, int offset, int count) throws IOException { 197 if (cbuf == null) { 200 if ((offset | count) < 0 || offset > cbuf.length - count) { 205 out.write(cbuf, offset, count); 213 System.arraycopy(cbuf, offset, this.buf, pos, available); 223 out.write(cbuf, offset, available) [all...] |
/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/chromium/third_party/icu/source/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);
|
/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/chromium/third_party/icu/source/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/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);
|
/hardware/ril/mock-ril/src/cpp/ |
node_util.cpp | 57 const unsigned char *cbuf = static_cast<const unsigned char*>(buf); local 61 twobytebuf[i] = cbuf[i];
|
/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 | 389 char *cbuf=NULL,*sbuf=NULL,*mbuf=NULL; local 467 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...] |
/external/chromium/third_party/icu/source/test/cintltst/ |
cdattst.c | 771 char cbuf[256]; local 1081 char cbuf[256]; local [all...] |
/external/icu4c/test/cintltst/ |
cdattst.c | 771 char cbuf[256]; local 1081 char cbuf[256]; local [all...] |
/external/openssl/ssl/ |
ssltest.c | 1145 MS_STATIC char cbuf[1024*8]; local 1465 MS_STATIC char cbuf[1024*8],sbuf[1024*8]; local [all...] |