Searched refs:buf (Results 76 - 100 of 6266) sorted by relevance

1234567891011>>

/external/libcxx/test/std/depr/depr.str.strstreams/depr.istrstream/depr.istrstream.members/
H A Dstr.pass.cpp22 const char buf[] = "123 4.5 dog"; local
23 std::istrstream in(buf);
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/
H A Dmember_swap.pass.cpp24 std::stringbuf buf; local
25 buf.swap(buf1);
26 assert(buf.str() == "testing");
31 std::stringbuf buf; local
32 buf.swap(buf1);
33 assert(buf.str() == "testing");
38 std::stringbuf buf; local
39 buf.swap(buf1);
40 assert(buf.str() == "testing");
45 std::wstringbuf buf; local
52 std::wstringbuf buf; local
59 std::wstringbuf buf; local
[all...]
H A Dmove.pass.cpp24 std::stringbuf buf; local
25 buf = move(buf1);
26 assert(buf.str() == "testing");
30 std::stringbuf buf; local
31 buf = move(buf1);
32 assert(buf.str() == "testing");
36 std::stringbuf buf; local
37 buf = move(buf1);
38 assert(buf.str() == "testing");
42 std::wstringbuf buf; local
48 std::wstringbuf buf; local
54 std::wstringbuf buf; local
[all...]
H A Dnonmember_swap.pass.cpp26 std::stringbuf buf; local
27 swap(buf, buf1);
28 assert(buf.str() == "testing");
33 std::stringbuf buf; local
34 swap(buf, buf1);
35 assert(buf.str() == "testing");
40 std::stringbuf buf; local
41 swap(buf, buf1);
42 assert(buf.str() == "testing");
47 std::wstringbuf buf; local
54 std::wstringbuf buf; local
61 std::wstringbuf buf; local
[all...]
/external/libvpx/libvpx/
H A Dvpxstats.c25 stats->buf.sz = 0;
26 stats->buf.buf = NULL;
38 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file);
41 stats->buf.buf = malloc(stats->buf_alloc_sz);
43 if (!stats->buf.buf)
47 nbytes = fread(stats->buf.buf,
[all...]
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
H A Dv4l2_show.c46 void show_v4l2_buffer(struct v4l2_buffer *buf) argument
68 buf->index,
69 buf->type,
70 buf->bytesused,
71 buf->flags,
72 buf->field,
73 buf->timestamp.tv_sec,
74 buf->timestamp.tv_usec,
75 buf->timecode.type,
76 buf
[all...]
/external/strace/tests/
H A Dsprintrc.c55 static char buf[4096]; local
64 ? snprintf(buf, sizeof(buf), formats[fmt], errno2name())
65 : snprintf(buf, sizeof(buf), "%ld", rc);
69 if ((size_t) ret >= sizeof(buf))
71 " no more than %zu", ret, sizeof(buf));
73 return buf;
/external/strace/tests-m32/
H A Dsprintrc.c55 static char buf[4096]; local
64 ? snprintf(buf, sizeof(buf), formats[fmt], errno2name())
65 : snprintf(buf, sizeof(buf), "%ld", rc);
69 if ((size_t) ret >= sizeof(buf))
71 " no more than %zu", ret, sizeof(buf));
73 return buf;
/external/strace/tests-mx32/
H A Dsprintrc.c55 static char buf[4096]; local
64 ? snprintf(buf, sizeof(buf), formats[fmt], errno2name())
65 : snprintf(buf, sizeof(buf), "%ld", rc);
69 if ((size_t) ret >= sizeof(buf))
71 " no more than %zu", ret, sizeof(buf));
73 return buf;
/external/syslinux/com32/lib/
H A Dgetcwd.c9 char *getcwd(char *buf, size_t size) argument
11 return core_getcwd(buf, size);
H A Dbufprintf.c6 int vbufprintf(struct print_buf *buf, const char *format, va_list ap) argument
15 if (rv + buf->len >= buf->size) {
16 size_t newsize = rv + buf->len + BUFPAD;
19 newbuf = realloc(buf->buf, newsize);
25 buf->buf = newbuf;
26 buf->size = newsize;
29 rv = vsnprintf(buf
36 bufprintf(struct print_buf *buf, const char *format, ...) argument
[all...]
/external/valgrind/coregrind/m_gdbserver/
H A Dregcache.h45 void registers_to_string (char *buf);
49 void registers_from_string (const char *buf);
65 /* *mod set to True if *buf provides a new value. */
66 void supply_register (int n, const void *buf, Bool *mod);
68 /* Reads register data from buf (hex string in target byte order)
70 *mod set to True if *buf provides a new value. */
71 void supply_register_from_string (int n, const char *buf, Bool *mod);
73 /* *mod set to True if *buf provides a new value. */
74 void supply_register_by_name (const char *name, const void *buf, Bool *mod);
76 void collect_register (int n, void *buf);
[all...]
/external/zlib/src/contrib/blast/
H A Dblast.h38 typedef unsigned (*blast_in)(void *how, unsigned char **buf);
39 typedef int (*blast_out)(void *how, unsigned char *buf, unsigned len);
52 * The input function is invoked: len = infun(how, &buf), where buf is set by
58 * The output function is invoked: err = outfun(how, buf, len), where the bytes
59 * to be written are buf[0..len-1]. If err is not zero, then blast() returns
/external/libvpx/libvpx/vpx_dsp/arm/
H A Dmem_neon.h23 static INLINE int16x8x2_t load_tran_low_to_s16x2q(const tran_low_t *buf) { argument
25 const int32x4x2_t v0 = vld2q_s32(buf);
26 const int32x4x2_t v1 = vld2q_s32(buf + 8);
36 return vld2q_s16(buf);
40 static INLINE int16x8_t load_tran_low_to_s16q(const tran_low_t *buf) { argument
42 const int32x4_t v0 = vld1q_s32(buf);
43 const int32x4_t v1 = vld1q_s32(buf + 4);
48 return vld1q_s16(buf);
52 static INLINE int16x4_t load_tran_low_to_s16d(const tran_low_t *buf) { argument
54 const int32x4_t v0 = vld1q_s32(buf);
61 store_s16q_to_tran_low(tran_low_t *buf, const int16x8_t a) argument
78 uint32_to_mem(uint8_t *buf, uint32_t a) argument
83 load_unaligned_u8q(const uint8_t *buf, int stride) argument
103 store_unaligned_u8q(uint8_t *buf, int stride, const uint8x16_t a) argument
120 load_u8(const uint8_t *buf, int stride) argument
133 store_u8(uint8_t *buf, int stride, const uint8x8_t a) argument
[all...]
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void wpabuf_clear_free(struct wpabuf *buf);
36 void * wpabuf_put(struct wpabuf *buf, size_t len);
38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
39 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
40 struct wpabuf * wpabuf_parse_bin(const char *buf);
45 * @buf
48 wpabuf_size(const struct wpabuf *buf) argument
58 wpabuf_len(const struct wpabuf *buf) argument
68 wpabuf_tailroom(const struct wpabuf *buf) argument
78 wpabuf_head(const struct wpabuf *buf) argument
83 wpabuf_head_u8(const struct wpabuf *buf) argument
93 wpabuf_mhead(struct wpabuf *buf) argument
98 wpabuf_mhead_u8(struct wpabuf *buf) argument
103 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
109 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
115 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
121 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
127 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
133 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
139 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
152 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/external/wpa_supplicant_8/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void wpabuf_clear_free(struct wpabuf *buf);
36 void * wpabuf_put(struct wpabuf *buf, size_t len);
38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
39 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
40 struct wpabuf * wpabuf_parse_bin(const char *buf);
45 * @buf
48 wpabuf_size(const struct wpabuf *buf) argument
58 wpabuf_len(const struct wpabuf *buf) argument
68 wpabuf_tailroom(const struct wpabuf *buf) argument
78 wpabuf_head(const struct wpabuf *buf) argument
83 wpabuf_head_u8(const struct wpabuf *buf) argument
93 wpabuf_mhead(struct wpabuf *buf) argument
98 wpabuf_mhead_u8(struct wpabuf *buf) argument
103 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
109 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
115 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
121 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
127 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
133 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
139 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
152 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void wpabuf_clear_free(struct wpabuf *buf);
36 void * wpabuf_put(struct wpabuf *buf, size_t len);
38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
39 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
40 struct wpabuf * wpabuf_parse_bin(const char *buf);
45 * @buf
48 wpabuf_size(const struct wpabuf *buf) argument
58 wpabuf_len(const struct wpabuf *buf) argument
68 wpabuf_tailroom(const struct wpabuf *buf) argument
78 wpabuf_head(const struct wpabuf *buf) argument
83 wpabuf_head_u8(const struct wpabuf *buf) argument
93 wpabuf_mhead(struct wpabuf *buf) argument
98 wpabuf_mhead_u8(struct wpabuf *buf) argument
103 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
109 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
115 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
121 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
127 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
133 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
139 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
152 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/wpa_supplicant_8/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/ltp/testcases/kernel/sched/nptl/
H A Dnptl01.c72 void call_mutex_init(pthread_mutex_t * mutex, char *buf, size_t buf_len) argument
78 strerror_r(ret, buf, buf_len));
82 void call_mutex_lock(pthread_mutex_t * mutex, char *buf, size_t buf_len) argument
88 strerror_r(ret, buf, buf_len));
92 void call_mutex_unlock(pthread_mutex_t * mutex, char *buf, size_t buf_len) argument
98 strerror_r(ret, buf, buf_len));
102 void call_cond_init(pthread_cond_t * cond, char *buf, size_t buf_len) argument
108 strerror_r(ret, buf, buf_len));
113 char *buf, size_t buf_len)
119 strerror_r(ret, buf, buf_le
112 call_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex, char *buf, size_t buf_len) argument
123 call_cond_signal(pthread_cond_t * cond, char *buf, size_t buf_len) argument
133 do_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, char *buf, size_t buf_len, int i) argument
167 char buf[1024]; local
185 create_child_thread(char *buf, size_t buf_len) argument
227 char buf[1024]; local
[all...]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
H A DGrammarReport2.java47 StringBuilder buf = new StringBuilder();
48 stats(root, buf);
51 stats(g, buf);
53 return buf.toString();
56 void stats(Grammar g, StringBuilder buf) { argument
67 buf.append(g.name+"."+enclosingRule.name+":" +
71 buf.append(decisionAST.getLine());
72 buf.append(":");
73 buf.append(decisionAST.getCharPositionInLine());
74 buf
90 nl(StringBuilder buf) argument
[all...]
/external/boringssl/src/ssl/
H A Dssl_buffer.c36 /* setup_buffer initializes |buf| with capacity |cap|, aligned such that data
39 static int setup_buffer(SSL3_BUFFER *buf, size_t header_len, size_t cap) { argument
40 if (buf->buf != NULL || cap > 0xffff) {
46 buf->buf = OPENSSL_malloc(cap + SSL3_ALIGN_PAYLOAD - 1);
47 if (buf->buf == NULL) {
53 buf->offset = (0 - header_len - (uintptr_t)buf
60 consume_buffer(SSL3_BUFFER *buf, size_t len) argument
69 clear_buffer(SSL3_BUFFER *buf) argument
81 SSL3_BUFFER *buf = &ssl->s3->read_buffer; local
107 SSL3_BUFFER *buf = &ssl->s3->read_buffer; local
128 SSL3_BUFFER *buf = &ssl->s3->read_buffer; local
183 SSL3_BUFFER *buf = &ssl->s3->read_buffer; local
221 SSL3_BUFFER *buf = &ssl->s3->write_buffer; local
255 SSL3_BUFFER *buf = &ssl->s3->write_buffer; local
264 SSL3_BUFFER *buf = &ssl->s3->write_buffer; local
279 SSL3_BUFFER *buf = &ssl->s3->write_buffer; local
[all...]
/external/libmojo/mojo/public/cpp/bindings/tests/
H A Dbuffer_unittest.cc18 char* buf = reinterpret_cast<char*>(p_buf); local
20 if (buf[i] != 0)
28 internal::FixedBufferForTesting buf(internal::Align(10) * 2);
29 ASSERT_EQ(buf.size(), 16u * 2);
31 void* a = buf.Allocate(10);
36 void* b = buf.Allocate(10);
49 internal::FixedBufferForTesting buf(8);
50 ASSERT_EQ(8u, buf.size());
52 ptr = buf.Allocate(8);
54 buf_ptr = buf
[all...]
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
H A Dpb_bufmgr_ondemand.c74 pb_ondemand_buffer(struct pb_buffer *buf) argument
76 assert(buf);
77 if (!buf)
79 assert(buf->vtbl == &pb_ondemand_buffer_vtbl);
80 return (struct pb_ondemand_buffer *)buf;
94 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
96 pb_reference(&buf->buffer, NULL);
98 align_free(buf->data);
100 FREE(buf);
108 struct pb_ondemand_buffer *buf local
125 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
141 pb_ondemand_buffer_instantiate(struct pb_ondemand_buffer *buf) argument
177 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
196 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
211 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
241 struct pb_ondemand_buffer *buf; local
[all...]

Completed in 659 milliseconds

1234567891011>>