HomeSort by relevance Sort by last modified time
    Searched refs:buf (Results 251 - 275 of 13582) sorted by null

<<11121314151617181920>>

  /external/compiler-rt/test/sanitizer_common/TestCases/Linux/
open_memstream.cc 29 char *buf; local
31 fprintf(stderr, " &buf %p, &buf_len %p\n", &buf, &buf_len);
32 FILE *fp = open_memstream(&buf, &buf_len);
36 check_mem_is_good(&buf, sizeof(buf));
38 check_mem_is_good(buf, buf_len);
50 fprintf(stderr, " %p addr %p, len %zu\n", &buf, buf, buf_len);
51 check_mem_is_good(&buf, sizeof(buf))
    [all...]
  /external/icu/icu4c/source/test/intltest/
testutil.cpp 18 UnicodeString &TestUtility::appendHex(UnicodeString &buf, UChar32 ch) {
21 buf.append(HEX[0xF&(ch>>20)]);
23 buf.append(HEX[0xF&(ch>>16)]);
25 buf.append(HEX[0xF&(ch>>12)]);
26 buf.append(HEX[0xF&(ch>>8)]);
27 buf.append(HEX[0xF&(ch>>4)]);
28 buf.append(HEX[0xF&ch]);
29 return buf;
33 UnicodeString buf; local
34 appendHex(buf, ch)
57 UnicodeString buf; local
    [all...]
  /external/libedit/src/
fgetln.c 50 static char *buf = NULL; local
55 if (buf == NULL) {
57 if ((buf = malloc(bufsiz)) == NULL)
61 if (fgets(buf, bufsiz, fp) == NULL)
65 while ((ptr = strchr(&buf[*len], '\n')) == NULL) {
67 char *nbuf = realloc(buf, nbufsiz);
71 free(buf);
73 buf = NULL;
76 buf = nbuf;
78 if (fgets(&buf[bufsiz], BUFSIZ, fp) == NULL)
    [all...]
  /external/volley/src/main/java/com/android/volley/toolbox/
ByteArrayPool.java 93 byte[] buf = mBuffersBySize.get(i);
94 if (buf.length >= len) {
95 mCurrentSize -= buf.length;
97 mBuffersByLastUse.remove(buf);
98 return buf;
108 * @param buf the buffer to return to the pool.
110 public synchronized void returnBuf(byte[] buf) {
111 if (buf == null || buf.length > mSizeLimit) {
114 mBuffersByLastUse.add(buf);
    [all...]
  /libcore/support/src/test/java/tests/support/
Support_StringWriter.java 24 private StringBuffer buf; field in class:Support_StringWriter
33 buf = new StringBuffer(16);
34 lock = buf;
44 buf = new StringBuffer(initialSize);
45 lock = buf;
80 return buf;
94 return buf.toString();
100 * in <code>buf</code> to this StringWriter.
102 * @param buf
105 * offset in buf to retrieve character
    [all...]
  /tools/apksig/src/main/java/com/android/apksig/internal/util/
OutputStreamDataSink.java 52 public void consume(byte[] buf, int offset, int length) throws IOException {
53 mOut.write(buf, offset, length);
57 public void consume(ByteBuffer buf) throws IOException {
58 if (!buf.hasRemaining()) {
62 if (buf.hasArray()) {
64 buf.array(),
65 buf.arrayOffset() + buf.position(),
66 buf.remaining());
67 buf.position(buf.limit())
    [all...]
  /bionic/tests/
sys_xattr_test.cpp 26 char buf[10]; local
28 ASSERT_EQ(4, getxattr(tf.filename, "user.foo", buf, sizeof(buf)));
29 ASSERT_STREQ("bar", buf);
30 buf[0] = '\0';
31 ASSERT_EQ(4, lgetxattr(tf.filename, "user.foo", buf, sizeof(buf)));
32 ASSERT_STREQ("bar", buf);
37 char buf[10]; local
39 ASSERT_EQ(4, fgetxattr(tf.fd, "user.foo", buf, sizeof(buf)))
45 char buf[10]; local
52 char buf[10]; local
59 char buf[10]; local
75 char buf[10]; local
93 char buf[10]; local
106 char buf[65536]; \/\/ 64kB is max possible xattr list size. See "man 7 xattr". local
115 char buf[65536]; \/\/ 64kB is max possible xattr list size. See "man 7 xattr". local
    [all...]
  /external/openssh/
sshbuf.h 43 size_t off; /* First available byte is buf->d + buf->off */
44 size_t size; /* Last byte is buf->d + buf->size - 1 */
46 size_t alloc; /* Total bytes allocated to buf->d */
59 void sshbuf_init(struct sshbuf *buf);
76 * buffer. The contents of "buf" must not change in the lifetime of the
80 struct sshbuf *sshbuf_fromb(struct sshbuf *buf);
85 * The contents of "buf" must not change in the lifetime of the resultant
89 int sshbuf_froms(struct sshbuf *buf, struct sshbuf **bufp)
    [all...]
  /external/mesa3d/src/gallium/auxiliary/pipebuffer/
pb_bufmgr_cache.c 89 pb_cache_buffer(struct pb_buffer *buf)
91 assert(buf);
92 return (struct pb_cache_buffer *)buf;
108 _pb_cache_buffer_destroy(struct pb_cache_buffer *buf)
110 struct pb_cache_manager *mgr = buf->mgr;
112 LIST_DEL(&buf->head);
115 assert(!pipe_is_referenced(&buf->base.reference));
116 pb_reference(&buf->buffer, NULL);
117 FREE(buf);
128 struct pb_cache_buffer *buf; local
152 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
172 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
180 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
190 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
199 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
209 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local
265 struct pb_cache_buffer *buf; local
361 struct pb_cache_buffer *buf; local
    [all...]
  /external/syslinux/lzo/src/
lzo_util.c 102 #define LZO_DO1(buf,i) s1 += buf[i]; s2 += s1
103 #define LZO_DO2(buf,i) LZO_DO1(buf,i); LZO_DO1(buf,i+1);
104 #define LZO_DO4(buf,i) LZO_DO2(buf,i); LZO_DO2(buf,i+2);
105 #define LZO_DO8(buf,i) LZO_DO4(buf,i); LZO_DO4(buf,i+4)
    [all...]
  /external/toybox/toys/posix/
cal.c 26 static char *calstrings(char *buf, struct tm *tm)
34 buf += sprintf(buf, "%*s%*s ", len, temp, 20-len, "");
35 buf++;
36 buf += sprintf(buf, "Su Mo Tu We Th Fr Sa ");
37 buf++;
59 buf += sprintf(buf, pat, mday);
61 buf++
73 char *buf = toybuf; local
    [all...]
  /external/vboot_reference/tests/
stateful_util_tests.c 24 char buf[128]; local
28 StatefulInit(&s, buf, 128);
31 TEST_PTR_EQ(buf, s.remaining_buf, "StatefulInit() buf");
38 char buf[128]; local
41 StatefulInit(&s, buf, 128);
44 TEST_PTR_EQ(buf + 5, s.remaining_buf, "StatefulSkip(5) buf");
48 StatefulInit(&s, buf, 128);
51 TEST_PTR_EQ(buf + 128, s.remaining_buf, "StatefulSkip(all) buf")
83 char buf[129]; local
148 char buf[129]; local
221 char buf[129]; local
    [all...]
  /external/boringssl/src/crypto/buf/
buf.c 57 #include <openssl/buf.h>
72 OPENSSL_PUT_ERROR(BUF, ERR_R_MALLOC_FAILURE);
80 void BUF_MEM_free(BUF_MEM *buf) {
81 if (buf == NULL) {
85 if (buf->data != NULL) {
86 OPENSSL_cleanse(buf->data, buf->max);
87 OPENSSL_free(buf->data);
90 OPENSSL_free(buf);
93 static int buf_mem_reserve(BUF_MEM *buf, size_t cap, int clean)
    [all...]
  /external/wpa_supplicant_8/src/p2p/
p2p_build.c 18 void p2p_buf_add_action_hdr(struct wpabuf *buf, u8 subtype, u8 dialog_token)
20 wpabuf_put_u8(buf, WLAN_ACTION_VENDOR_SPECIFIC);
21 wpabuf_put_be32(buf, P2P_IE_VENDOR_TYPE);
23 wpabuf_put_u8(buf, subtype); /* OUI Subtype */
24 wpabuf_put_u8(buf, dialog_token);
29 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype,
32 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC);
33 wpabuf_put_u8(buf, WLAN_PA_VENDOR_SPECIFIC);
34 wpabuf_put_be32(buf, P2P_IE_VENDOR_TYPE);
36 wpabuf_put_u8(buf, subtype); /* OUI Subtype *
    [all...]
  /libcore/ojluni/src/main/java/java/net/
DatagramPacket.java 58 byte[] buf; field in class:DatagramPacket
70 * {@code buf.length}.
72 * @param buf buffer for holding the incoming datagram.
78 public DatagramPacket(byte buf[], int offset, int length) {
79 setData(buf, offset, length);
89 * {@code buf.length}.
91 * @param buf buffer for holding the incoming datagram.
94 public DatagramPacket(byte buf[], int length) {
95 this (buf, 0, length);
103 * {@code buf.length}
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
JavaScriptTarget.java 56 StringBuffer buf = new StringBuffer(22); // enough for the two "0x", "," and " " local
57 buf.append("0x");
58 writeHexWithPadding(buf, Integer.toHexString((int)(word & 0x00000000ffffffffL)));
59 buf.append(", 0x");
60 writeHexWithPadding(buf, Integer.toHexString((int)(word >> 32)));
62 return buf.toString();
65 private void writeHexWithPadding(StringBuffer buf, String digits) {
70 buf.append('0');
72 buf.append(digits);
  /external/boringssl/src/include/openssl/
rand.h 28 /* RAND_bytes writes |len| bytes of random data to |buf| and returns one. */
29 OPENSSL_EXPORT int RAND_bytes(uint8_t *buf, size_t len);
75 OPENSSL_EXPORT int RAND_pseudo_bytes(uint8_t *buf, size_t len);
79 OPENSSL_EXPORT void RAND_seed(const void *buf, int num);
85 OPENSSL_EXPORT const char *RAND_file_name(char *buf, size_t num);
88 OPENSSL_EXPORT void RAND_add(const void *buf, int num, double entropy);
103 void (*seed) (const void *buf, int num);
104 int (*bytes) (uint8_t *buf, size_t num);
106 void (*add) (const void *buf, int num, double entropy);
107 int (*pseudorand) (uint8_t *buf, size_t num)
    [all...]
  /external/ltp/lib/tests/
tst_safe_macros.c 18 char buf[10]; local
21 buf[9] = '\0';
30 SAFE_READ(cleanup, 0, fd, buf, 9);
31 printf("buf: %s\n", buf);
32 SAFE_READ(cleanup, 1, fd, buf, 9);
33 printf("buf: %s\n", buf);
34 SAFE_WRITE(cleanup, 0, -1, buf, 9);
35 SAFE_WRITE(NULL, 0, fd, buf, 9)
    [all...]
  /external/e2fsprogs/contrib/
make-sparse.c 27 int full_read(int fd, char *buf, size_t count)
33 got = read(fd, buf, count);
45 buf += got;
56 char buf[1024]; local
68 got = full_read(0, buf, sizeof(buf));
71 if (got == sizeof(buf)) {
72 for (i=0; i < sizeof(buf); i++)
73 if (buf[i])
75 if (i == sizeof(buf)) {
    [all...]
  /external/ltp/testcases/kernel/io/ltp-aiodio/
read_checkzero.c 36 char *check_zero(unsigned char *buf, int size)
40 p = buf;
43 if (*buf != 0) {
45 "non zero buffer at buf[%d] => 0x%02x,%02x,%02x,%02x\n",
46 buf - p, (unsigned int)buf[0],
47 size > 1 ? (unsigned int)buf[1] : 0,
48 size > 2 ? (unsigned int)buf[2] : 0,
49 size > 3 ? (unsigned int)buf[3] : 0);
50 fprintf(stderr, "buf %p, p %p\n", buf, p)
64 char buf[4096]; local
    [all...]
  /external/mesa3d/src/gallium/state_trackers/clover/api/
device.cpp 67 size_t size, void *buf, size_t *size_ret) {
73 return scalar_property<cl_device_type>(buf, size, size_ret, dev->type());
76 return scalar_property<cl_uint>(buf, size, size_ret, dev->vendor_id());
79 return scalar_property<cl_uint>(buf, size, size_ret, 1);
82 return scalar_property<cl_uint>(buf, size, size_ret,
86 return vector_property<size_t>(buf, size, size_ret,
90 return scalar_property<size_t>(buf, size, size_ret,
94 return scalar_property<cl_uint>(buf, size, size_ret, 16);
97 return scalar_property<cl_uint>(buf, size, size_ret, 8);
100 return scalar_property<cl_uint>(buf, size, size_ret, 4)
    [all...]
  /external/strace/
fetch_struct_stat.c 77 struct_stat buf; local
78 if (umove_or_printaddr(tcp, addr, &buf))
81 dst->dev = zero_extend_signed_to_ull(buf.st_dev);
82 dst->ino = zero_extend_signed_to_ull(buf.st_ino);
83 dst->rdev = zero_extend_signed_to_ull(buf.st_rdev);
84 dst->size = zero_extend_signed_to_ull(buf.st_size);
85 dst->blocks = zero_extend_signed_to_ull(buf.st_blocks);
86 dst->blksize = zero_extend_signed_to_ull(buf.st_blksize);
87 dst->mode = zero_extend_signed_to_ull(buf.st_mode);
88 dst->nlink = zero_extend_signed_to_ull(buf.st_nlink)
    [all...]
fetch_struct_stat64.c 75 struct_stat64 buf; local
76 if (umove_or_printaddr(tcp, addr, &buf))
79 dst->dev = zero_extend_signed_to_ull(buf.st_dev);
80 dst->ino = zero_extend_signed_to_ull(buf.st_ino);
81 dst->rdev = zero_extend_signed_to_ull(buf.st_rdev);
82 dst->size = zero_extend_signed_to_ull(buf.st_size);
83 dst->blocks = zero_extend_signed_to_ull(buf.st_blocks);
84 dst->blksize = zero_extend_signed_to_ull(buf.st_blksize);
85 dst->mode = zero_extend_signed_to_ull(buf.st_mode);
86 dst->nlink = zero_extend_signed_to_ull(buf.st_nlink)
    [all...]
  /libcore/ojluni/src/main/java/java/util/zip/
GZIPOutputStream.java 137 * @param buf the data to be written
142 public synchronized void write(byte[] buf, int off, int len)
145 super.write(buf, off, len);
146 crc.update(buf, off, len);
159 int len = def.deflate(buf, 0, buf.length);
160 if (def.finished() && len <= buf.length - TRAILER_SIZE) {
162 writeTrailer(buf, len);
164 out.write(buf, 0, len);
168 out.write(buf, 0, len)
202 writeInt(def.getTotalIn(), buf, offset + 4); \/\/ Number of uncompr. bytes local
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/
Utils.java 70 char[] buf = new char[40]; // as long as we get, and actually we can't get this high, no units past zhao local
78 int x = buf.length;
82 buf[--x] = zh.levels[l];
88 buf[--x] = zh.units[u++];
96 if (x < buf.length-1 && u != 0) {
97 buf[x] = '*';
100 buf[--x] = '*';
102 buf[--x] = zh.digits[0];
108 buf[--x] = zh.digits[d];
117 int i = buf.length - 3
    [all...]

Completed in 1576 milliseconds

<<11121314151617181920>>