/external/icu/icu4c/source/tools/toolutil/ |
H A D | ucbuf.cpp | 163 ucbuf_fillucbuf( UCHARBUF* buf,UErrorCode* error){ argument 174 pTarget = buf->buffer; 176 if(buf->currentPos<buf->bufLimit){ 177 offset = (int32_t)(buf->bufLimit-buf->currentPos); 178 memmove(buf->buffer,buf->currentPos,offset* sizeof(UChar)); 184 if(buf->isBuffered){ 187 inputRead=T_FileStream_read(buf 325 ucbuf_getc(UCHARBUF* buf,UErrorCode* error) argument 344 ucbuf_getc32(UCHARBUF* buf,UErrorCode* error) argument 375 ucbuf_getcx32(UCHARBUF* buf,UErrorCode* error) argument 469 UCHARBUF* buf =(UCHARBUF*) uprv_malloc(sizeof(UCHARBUF)); local 539 ucbuf_ungetc(int32_t c,UCHARBUF* buf) argument 556 ucbuf_closebuf(UCHARBUF* buf) argument 563 ucbuf_close(UCHARBUF* buf) argument 576 ucbuf_rewind(UCHARBUF* buf,UErrorCode* error) argument 615 ucbuf_size(UCHARBUF* buf) argument 627 ucbuf_getBuffer(UCHARBUF* buf,int32_t* len,UErrorCode* error) argument 716 ucbuf_readline(UCHARBUF* buf,int32_t* len,UErrorCode* err) argument [all...] |
/external/lzma/xz-embedded/ |
H A D | xz_config.h | 48 #define memzero(buf, size) memset(buf, 0, size) 76 static inline uint32_t get_unaligned_le32(const uint8_t *buf) argument 78 return (uint32_t)buf[0] 79 | ((uint32_t)buf[1] << 8) 80 | ((uint32_t)buf[2] << 16) 81 | ((uint32_t)buf[3] << 24); 86 static inline uint32_t get_unaligned_be32(const uint8_t *buf) argument 88 return (uint32_t)(buf[0] << 24) 89 | ((uint32_t)buf[ 96 put_unaligned_le32(uint32_t val, uint8_t *buf) argument 106 put_unaligned_be32(uint32_t val, uint8_t *buf) argument [all...] |
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
H A D | pb_buffer.h | 122 void (*destroy)( struct pb_buffer *buf ); 128 void *(*map)( struct pb_buffer *buf, 131 void (*unmap)( struct pb_buffer *buf ); 133 enum pipe_error (*validate)( struct pb_buffer *buf, 137 void (*fence)( struct pb_buffer *buf, 151 void (*get_base_buffer)( struct pb_buffer *buf, 162 pb_map(struct pb_buffer *buf, argument 165 assert(buf); 166 if(!buf) 168 assert(pipe_is_referenced(&buf 174 pb_unmap(struct pb_buffer *buf) argument 185 pb_get_base_buffer( struct pb_buffer *buf, struct pb_buffer **base_buf, pb_size *offset ) argument 204 pb_validate(struct pb_buffer *buf, struct pb_validate *vl, unsigned flags) argument 215 pb_fence(struct pb_buffer *buf, struct pipe_fence_handle *fence) argument 226 pb_destroy(struct pb_buffer *buf) argument [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
H A D | GrammarReport.java | 260 StringBuffer buf = new StringBuffer(); 268 if (i>0) buf.append('\t'); 269 buf.append(s); 276 return buf.toString(); 280 StringBuffer buf = new StringBuffer(); 281 buf.append("Backtracking report:"); 282 buf.append(newline); 283 buf.append("Number of decisions that backtrack: "); 284 buf.append(grammar.decisionsWhoseDFAsUsesSynPreds.size()); 285 buf [all...] |
/external/toybox/toys/pending/ |
H A D | ipcs.c | 45 struct semid_ds *buf; member in union:semun 52 struct msqid_ds buf; local 55 if ((ret = msgctl(TT.id, IPC_STAT, &buf)) < 0) { 60 #define ipcperm buf.msg_perm 66 (long) buf.msg_cbytes, (long) buf.msg_qbytes, 67 (long) buf.msg_qnum, buf.msg_lspid, buf.msg_lrpid); 70 buf 78 struct semid_ds buf; local 120 struct shmid_ds buf; local 151 struct shmid_ds buf; local 252 struct semid_ds buf; local 340 struct msqid_ds buf; local [all...] |
/external/valgrind/none/tests/s390x/ |
H A D | srst.c | 44 char *buf; local 52 buf = srst3(&buffer[23], &buffer[23], '0', &cc); 53 dump_field(buf, 1); 56 buf = srst3(&buffer[23], &buffer[0], '0', &cc); 57 dump_field(buf, 1); 60 buf = srst3(&buffer[23], &buffer[0], 'a', &cc); 61 dump_field(buf, 1); 64 buf = srst3(&buffer[23], &buffer[0], 'm', &cc); 65 dump_field(buf, 1); 68 buf [all...] |
H A D | mvcl.c | 146 print_buf(const char *prefix, char *buf, uint32_t len) argument 153 putchar(buf[i]); 174 uint8_t byte, buf[10], small[5], i; local 183 run_test(NULL, 0, buf, sizeof buf, 0x00); 184 run_test(NULL, 0, buf, sizeof buf, 0xFF); 189 memset(buf, 'x', sizeof buf); 190 run_test(buf, sizeo [all...] |
/external/boringssl/src/crypto/pool/ |
H A D | pool.c | 20 #include <openssl/buf.h> 29 static uint32_t CRYPTO_BUFFER_hash(const CRYPTO_BUFFER *buf) { argument 30 return OPENSSL_hash32(buf->data, buf->len); 94 CRYPTO_BUFFER *const buf = OPENSSL_malloc(sizeof(CRYPTO_BUFFER)); local 95 if (buf == NULL) { 98 OPENSSL_memset(buf, 0, sizeof(CRYPTO_BUFFER)); 100 buf->data = BUF_memdup(data, len); 101 if (len != 0 && buf->data == NULL) { 102 OPENSSL_free(buf); 142 CRYPTO_BUFFER_free(CRYPTO_BUFFER *buf) argument 179 CRYPTO_BUFFER_up_ref(CRYPTO_BUFFER *buf) argument 190 CRYPTO_BUFFER_data(const CRYPTO_BUFFER *buf) argument 194 CRYPTO_BUFFER_len(const CRYPTO_BUFFER *buf) argument 198 CRYPTO_BUFFER_init_CBS(const CRYPTO_BUFFER *buf, CBS *out) argument [all...] |
/external/compiler-rt/test/msan/ |
H A D | strerror_r-non-gnu.c | 13 char buf[1000]; local 14 int res = strerror_r(EINVAL, buf, sizeof(buf)); 16 volatile int z = strlen(buf);
|
/external/flatbuffers/python/flatbuffers/ |
H A D | encode.py | 20 def Get(packer_type, buf, head): 21 """ Get decodes a value at buf[head:] using `packer_type`. """ 22 return packer_type.unpack_from(memoryview_type(buf), head)[0] 25 def Write(packer_type, buf, head, n): 26 """ Write encodes `n` at buf[head:] using `packer_type`. """ 27 packer_type.pack_into(buf, head, n)
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
H A D | ReplaceableString.java | 27 private StringBuffer buf; field in class:ReplaceableString 34 buf = new StringBuffer(str); 38 * Construct a new object using <code>buf</code> for internal 39 * storage. The contents of <code>buf</code> at the time of 41 * Modifications to <code>buf</code> will modify this object, and 43 * @param buf object to be used as internal storage 45 public ReplaceableString(StringBuffer buf) { argument 46 this.buf = buf; 53 buf [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | ReplaceableString.java | 26 private StringBuffer buf; field in class:ReplaceableString 34 buf = new StringBuffer(str); 38 * Construct a new object using <code>buf</code> for internal 39 * storage. The contents of <code>buf</code> at the time of 41 * Modifications to <code>buf</code> will modify this object, and 43 * @param buf object to be used as internal storage 46 public ReplaceableString(StringBuffer buf) { argument 47 this.buf = buf; 55 buf [all...] |
/external/libchrome/base/posix/ |
H A D | safe_strerror.cc | 45 char *buf, 48 char *rc = (*strerror_r_ptr)(err, buf, len); 49 if (rc != buf) { 50 // glibc did not use buf and returned a static string instead. Copy it 51 // into buf. 52 buf[0] = '\0'; 53 strncat(buf, rc, len - 1); 68 char *buf, 76 int result = (*strerror_r_ptr)(err, buf, len); 82 buf[le 42 wrap_posix_strerror_r( char *(*strerror_r_ptr)(int, char *, size_t), int err, char *buf, size_t len) argument 65 wrap_posix_strerror_r( int (*strerror_r_ptr)(int, char *, size_t), int err, char *buf, size_t len) argument 110 safe_strerror_r(int err, char *buf, size_t len) argument 123 char buf[buffer_size]; local [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime/ |
H A D | 3-1.c | 21 char buf[256]; local 26 result = strftime(buf, sizeof(buf), "%A %d %B, %I:%S %p", tm_ptr); 29 printf("strftime gives: %s\n", buf);
|
/external/syslinux/com32/include/syslinux/ |
H A D | io.h | 37 int syslinux_read_disk(void *buf, uint32_t sector, uint16_t count);
|
/external/syslinux/core/fs/ |
H A D | getcwd.c | 4 __export char *core_getcwd(char *buf, size_t size) argument 8 if((buf != NULL) && (strlen(this_fs->cwd_name) < size)) { 9 strcpy(buf, this_fs->cwd_name); 10 ret = buf;
|
/external/syslinux/gpxe/src/drivers/bus/ |
H A D | isa_ids.c | 12 static char buf[7]; local 18 buf[i] = ( 'A' - 1 + ( vendor & 0x1f ) ); 23 sprintf ( &buf[3], "%04x", bswap_16 ( product ) ); 25 return buf;
|
/external/webrtc/webrtc/base/ |
H A D | md5digest.cc | 19 void Md5Digest::Update(const void* buf, size_t len) { argument 20 MD5Update(&ctx_, static_cast<const uint8_t*>(buf), len); 23 size_t Md5Digest::Finish(void* buf, size_t len) { argument 27 MD5Final(&ctx_, static_cast<uint8_t*>(buf));
|
H A D | sha1digest.cc | 19 void Sha1Digest::Update(const void* buf, size_t len) { argument 20 SHA1Update(&ctx_, static_cast<const uint8_t*>(buf), len); 23 size_t Sha1Digest::Finish(void* buf, size_t len) { argument 27 SHA1Final(&ctx_, static_cast<uint8_t*>(buf));
|
/external/wpa_supplicant_8/hostapd/src/common/ |
H A D | gas.c | 20 struct wpabuf *buf; local 22 buf = wpabuf_alloc(100 + size); 23 if (buf == NULL) 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); 27 wpabuf_put_u8(buf, action); 28 wpabuf_put_u8(buf, dialog_token); 30 return buf; 51 struct wpabuf *buf; local 53 buf = wpabuf_alloc(100 + size); 54 if (buf 99 gas_add_adv_proto_anqp(struct wpabuf *buf, u8 query_resp_len_limit, u8 pame_bi) argument 114 struct wpabuf *buf; local 131 struct wpabuf *buf; local 151 struct wpabuf *buf; local 172 struct wpabuf *buf; local 193 struct wpabuf *buf; local 217 gas_anqp_set_len(struct wpabuf *buf) argument 255 gas_anqp_add_element(struct wpabuf *buf, u16 info_id) argument 270 gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos) argument [all...] |
/external/wpa_supplicant_8/src/common/ |
H A D | gas.c | 20 struct wpabuf *buf; local 22 buf = wpabuf_alloc(100 + size); 23 if (buf == NULL) 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); 27 wpabuf_put_u8(buf, action); 28 wpabuf_put_u8(buf, dialog_token); 30 return buf; 51 struct wpabuf *buf; local 53 buf = wpabuf_alloc(100 + size); 54 if (buf 99 gas_add_adv_proto_anqp(struct wpabuf *buf, u8 query_resp_len_limit, u8 pame_bi) argument 114 struct wpabuf *buf; local 131 struct wpabuf *buf; local 151 struct wpabuf *buf; local 172 struct wpabuf *buf; local 193 struct wpabuf *buf; local 217 gas_anqp_set_len(struct wpabuf *buf) argument 255 gas_anqp_add_element(struct wpabuf *buf, u16 info_id) argument 270 gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos) argument [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/common/ |
H A D | gas.c | 20 struct wpabuf *buf; local 22 buf = wpabuf_alloc(100 + size); 23 if (buf == NULL) 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); 27 wpabuf_put_u8(buf, action); 28 wpabuf_put_u8(buf, dialog_token); 30 return buf; 51 struct wpabuf *buf; local 53 buf = wpabuf_alloc(100 + size); 54 if (buf 99 gas_add_adv_proto_anqp(struct wpabuf *buf, u8 query_resp_len_limit, u8 pame_bi) argument 114 struct wpabuf *buf; local 131 struct wpabuf *buf; local 151 struct wpabuf *buf; local 172 struct wpabuf *buf; local 193 struct wpabuf *buf; local 217 gas_anqp_set_len(struct wpabuf *buf) argument 255 gas_anqp_add_element(struct wpabuf *buf, u16 info_id) argument 270 gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos) argument [all...] |
/external/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
H A D | getpass.cc | 23 char buf[1024]; local 24 int res = read(master, buf, sizeof(buf)); 25 write(1, buf, res); 27 while ((res = read(master, buf, sizeof(buf))) > 0) write(1, buf, res);
|
/external/conscrypt/platform/src/main/java/org/conscrypt/ |
H A D | Hex.java | 31 char[] buf = new char[bytes.length * 2]; 34 buf[c++] = DIGITS[(b >> 4) & 0xf]; 35 buf[c++] = DIGITS[b & 0xf]; 37 return new String(buf); 42 char[] buf = new char[bufLen]; 46 buf[--cursor] = DIGITS[i & 0xf]; 49 return new String(buf, cursor, bufLen - cursor);
|
/external/strace/tests/ |
H A D | uio.c | 41 char buf[4]; local 42 struct iovec iov = { buf, sizeof buf }; 46 assert(pread(0, buf, sizeof buf, offset) == 4); 51 assert(pwrite(0, buf, sizeof buf, offset) == 4);
|