Searched refs:cbuf (Results 1 - 25 of 124) sorted by relevance

12345

/external/guava/guava/src/com/google/common/io/
H A DLineBuffer.java44 * @param cbuf the character buffer to process
50 protected void add(char[] cbuf, int off, int len) throws IOException { argument
54 if (finishLine(cbuf[pos] == '\n')) {
61 switch (cbuf[pos]) {
63 line.append(cbuf, start, pos - start);
66 if (finishLine(cbuf[pos + 1] == '\n')) {
74 line.append(cbuf, start, pos - start);
83 line.append(cbuf, start, off + len - start);
H A DLineReader.java42 private final CharBuffer cbuf = CharBuffer.wrap(buf); field in class:LineReader
73 cbuf.clear();
78 : readable.read(cbuf);
H A DMultiReader.java52 @Override public int read(@Nullable char cbuf[], int off, int len) throws IOException { argument
56 int result = current.read(cbuf, off, len);
59 return read(cbuf, off, len);
H A DCharStreams.java196 public void write(char[] cbuf) { argument
197 checkNotNull(cbuf);
201 public void write(char[] cbuf, int off, int len) { argument
202 checkPositionIndexes(off, off + len, cbuf.length);
272 public int read(char[] cbuf, int off, int len) throws IOException {
273 return read(CharBuffer.wrap(cbuf, off, len));
H A DCharSequenceReader.java82 public synchronized int read(char[] cbuf, int off, int len) throws IOException { argument
83 checkPositionIndexes(off, off + len, cbuf.length);
90 cbuf[off + i] = seq.charAt(pos++);
H A DAppendableWriter.java54 @Override public void write(char cbuf[], int off, int len) argument
58 // than wrapping cbuf in a light-weight CharSequence.
59 target.append(new String(cbuf, off, len));
/external/vboot_reference/tests/
H A Dvb21_host_misc_tests.c37 uint8_t cbuf[sizeof(struct vb2_struct_common) + 12]; local
38 struct vb2_struct_common *c = (struct vb2_struct_common *)cbuf;
56 memset(cbuf, 0, sizeof(cbuf));
58 c->total_size = sizeof(cbuf);
60 cbuf[sizeof(cbuf) - 1] = 0xed; /* Some non-zero data at the end */
H A Dvb21_common_tests.c55 uint8_t cbuf[sizeof(struct vb2_struct_common) + 128]; local
56 uint8_t cbufgood[sizeof(cbuf)];
57 struct vb2_struct_common *c = (struct vb2_struct_common *)cbuf;
62 c->total_size = sizeof(cbuf);
65 memcpy(cbuf + c->fixed_size, test_desc, sizeof(test_desc));
68 c2 = (struct vb2_struct_common *)(cbuf + desc_end);
77 TEST_SUCC(vb2_verify_common_header(cbuf, sizeof(cbuf)),
79 memcpy(cbufgood, cbuf, sizeof(cbufgood));
81 memcpy(cbuf, cbufgoo
[all...]
/external/curl/lib/
H A Dsockaddr.h37 char cbuf[256]; /* this should be big enough to fit a lot */ member in union:Curl_sockaddr_storage::__anon3615
/external/guava/guava-tests/test/com/google/common/io/
H A DTestWriter.java49 public void write(char[] cbuf, int off, int len) throws IOException { argument
50 super.write(cbuf, off, len);
H A DTestCharSink.java64 public void write(char[] cbuf, int off, int len) throws IOException {
65 super.write(cbuf, off, len);
H A DLineBufferTest.java132 public int read(CharBuffer cbuf) throws IOException {
133 return reader.read(cbuf);
140 @Override public int read(char[] cbuf, int off, int len)
142 return super.read(cbuf, off, Math.min(chunk, len));
/external/proguard/src/proguard/io/
H A DManifestRewriter.java117 public int read(char[] cbuf, int off, int len) throws IOException argument
129 cbuf[off + count++] = (char)c;
197 public void write(char[] cbuf, int off, int len) throws IOException argument
201 write(cbuf[off + count]);
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_fs.c87 uint cbuf; local
90 for (cbuf = 0; cbuf < softpipe->framebuffer.nr_cbufs; cbuf++) {
91 float (*quadColor)[4] = quad->output.color[cbuf];
H A Dsp_fs_exec.c144 uint cbuf = sem_index[i]; local
146 assert(sizeof(quad->output.color[cbuf]) ==
150 memcpy(quad->output.color[cbuf],
/external/sl4a/ScriptingLayerForAndroid/src/de/mud/terminal/
H A DVDUBuffer.java365 char cbuf[][] = null;
394 cbuf = new char[size][];
397 System.arraycopy(charArray, oldBase + l, cbuf, 0, bottom - l - (n - 1));
399 System.arraycopy(cbuf, 0, charArray, oldBase + l + n, bottom - l - (n - 1));
401 cbuf = charArray;
422 cbuf = new char[newBufSize][];
426 cbuf = charArray;
432 System.arraycopy(charArray, offset, cbuf, 0, oldBase - offset);
438 System.arraycopy(charArray, oldBase, cbuf, newScreenBase, top);
444 System.arraycopy(charArray, oldBase + top, cbuf, oldBas
[all...]
/external/icu/icu4c/source/i18n/
H A Dname2uni.cpp124 char* cbuf = (char*) uprv_malloc(maxLen); local
125 if (cbuf == NULL) {
193 name.extract(0, len, cbuf, maxLen, US_INV);
196 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status);
253 uprv_free(cbuf);
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_scene.c143 struct pipe_surface *cbuf = scene->fb.cbufs[i]; local
144 assert(cbuf->u.tex.first_layer == cbuf->u.tex.last_layer);
145 scene->cbufs[i].stride = llvmpipe_resource_stride(cbuf->texture,
146 cbuf->u.tex.level);
148 scene->cbufs[i].map = llvmpipe_resource_map(cbuf->texture,
149 cbuf->u.tex.level,
150 cbuf->u.tex.first_layer,
184 struct pipe_surface *cbuf = scene->fb.cbufs[i]; local
185 llvmpipe_resource_unmap(cbuf
[all...]
H A Dlp_rast_priv.h194 struct pipe_surface *cbuf = scene->fb.cbufs[buf]; local
196 assert(cbuf);
197 lpt = llvmpipe_resource(cbuf->texture);
202 cbuf->u.tex.first_layer,
203 cbuf->u.tex.level,
/external/libcups/cups/
H A Dfile-private.h107 Bytef cbuf[4096]; /* (De)compression buffer */ member in struct:_cups_file_s
/external/smali/util/src/main/java/org/jf/util/
H A DWrappedIndentingWriter.java154 public void write(char[] cbuf, int off, int len) throws IOException { argument
157 write(cbuf[off]);
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/
H A DUnicodeReader.java121 public int read(char[] cbuf, int off, int len) throws IOException { argument
123 return internalIn2.read(cbuf, off, len);
/external/icu/icu4c/source/tools/toolutil/
H A Ducbuf.cpp168 char* cbuf = carr; local
187 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset);
192 cbuf = (char*)uprv_malloc(cbufSize);
193 if (cbuf == NULL) {
197 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize);
220 source = cbuf;
248 pos = (int32_t)(source - cbuf - len);
254 memcpy(preContext,cbuf+start,stop-start);
260 stop = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-cbuf));
[all...]
/external/mksh/src/
H A Dedit.c3344 char *cbuf; member in struct:edstate
3523 ebuf.cbuf = buf;
3524 if (undobuf.cbuf == NULL) {
3527 undobuf.cbuf = alloc(LINE, AEDIT);
3604 if (es->cbuf != buf)
3605 memcpy(buf, es->cbuf, es->linelen);
3692 es->cbuf[es->cursor++] = ch;
3794 new_es.cbuf = locpat;
3817 es->cbuf[es->linelen++] = '^';
3818 es->cbuf[e
[all...]
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_fragprog.c82 uint32_t *cbuf = (uint32_t *)nv04_resource(constbuf)->data; local
88 if (!memcmp(&fp->insn[off], &cbuf[idx], 4 * 4))
90 memcpy(&fp->insn[off], &cbuf[idx], 4 * 4);

Completed in 4267 milliseconds

12345