Searched refs:buf (Results 101 - 125 of 3851) sorted by relevance

1234567891011>>

/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/
H A DClose.java53 StringBuilder buf = new StringBuilder();
54 buf.append("<close ");
55 buf.append("xmlns=\"");
56 buf.append(InBandBytestreamManager.NAMESPACE);
57 buf.append("\" ");
58 buf.append("sid=\"");
59 buf.append(sessionID);
60 buf.append("\"");
61 buf.append("/>");
62 return buf
[all...]
/external/valgrind/main/coregrind/
H A Dm_vkiscnums.c49 Char* VG_(sysnum_string)(Word sysnum, SizeT n_buf, Char* buf) argument
51 VG_(snprintf)(buf, n_buf, "%3ld", sysnum);
52 return buf;
55 Char* VG_(sysnum_string_extra)(Word sysnum, SizeT n_buf, Char* buf) argument
57 return VG_(sysnum_string)(sysnum, n_buf, buf);
64 Char* VG_(sysnum_string)(Word sysnum, SizeT n_buf, Char* buf) argument
74 VG_(snprintf)(buf, n_buf, "%s:%3ld",
76 return buf;
79 Char* VG_(sysnum_string_extra)(Word sysnum, SizeT n_buf, Char* buf) argument
81 return VG_(sysnum_string)(sysnum, n_buf, buf);
[all...]
/external/valgrind/main/memcheck/tests/
H A Dtest-plo.c49 char *buf = memalign16(5); local
50 buf[0] = 'a';
51 buf[1] = 'b';
52 buf[2] = 'c';
53 buf[3] = 'd';
54 buf[4] = '\0';
58 if (aligned_strlen(buf) == 4)
63 buf[4] = 'x';
64 if (aligned_strlen(buf) == 0)
67 free(buf);
[all...]
/external/dropbear/libtomcrypt/src/misc/pkcs5/
H A Dpkcs_5_2.c39 unsigned char *buf[2]; local
52 buf[0] = XMALLOC(MAXBLOCKSIZE * 2);
54 if (hmac == NULL || buf[0] == NULL) {
58 if (buf[0] != NULL) {
59 XFREE(buf[0]);
63 /* buf[1] points to the second block of MAXBLOCKSIZE bytes */
64 buf[1] = buf[0] + MAXBLOCKSIZE;
71 zeromem(buf[0], MAXBLOCKSIZE*2);
74 STORE32H(blkno, buf[
[all...]
/external/apache-harmony/support/src/test/java/tests/support/
H A DSupport_StringWriter.java24 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 t
113 write(char[] buf, int offset, int count) argument
[all...]
/external/icu4c/test/intltest/
H A Dtestutil.cpp16 UnicodeString &TestUtility::appendHex(UnicodeString &buf, UChar32 ch) { argument
19 buf.append(HEX[0xF&(ch>>20)]);
21 buf.append(HEX[0xF&(ch>>16)]);
23 buf.append(HEX[0xF&(ch>>12)]);
24 buf.append(HEX[0xF&(ch>>8)]);
25 buf.append(HEX[0xF&(ch>>4)]);
26 buf.append(HEX[0xF&ch]);
27 return buf;
31 UnicodeString buf; local
32 appendHex(buf, c
55 UnicodeString buf; local
[all...]
/external/dropbear/libtomcrypt/testprof/
H A Dpkcs_1_test.c7 unsigned char buf[3][128]; local
24 zeromem(buf, sizeof(buf));
28 for (y = 0; y < l3; y++) buf[0][y] = rand() & 255;
40 l1 = sizeof(buf[1]);
41 DO(pkcs_1_oaep_encode(buf[0], l3, lparam, lparamlen, modlen, &yarrow_prng, prng_idx, hash_idx, buf[1], &l1));
44 l2 = sizeof(buf[2]);
45 DO(pkcs_1_oaep_decode(buf[1], l1, lparam, lparamlen, modlen, hash_idx, buf[
[all...]
H A Dstore_test.c6 unsigned char buf[256]; local
17 STORE32L(L, buf + y);
18 LOAD32L(L1, buf + y);
23 STORE32H(L, buf + y);
24 LOAD32H(L1, buf + y);
34 STORE64L(LL, buf + y);
35 LOAD64L(LL1, buf + y);
40 STORE64H(LL, buf + y);
41 LOAD64H(LL1, buf + y);
54 yarrow_read(buf
[all...]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
H A DJavaScriptTarget.java56 StringBuffer buf = new StringBuffer(22); // enough for the two "0x", "," and " "
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) { argument
70 buf.append('0');
72 buf.append(digits);
/external/dropbear/libtomcrypt/src/pk/ecc/
H A Decc_ansi_x963_export.c34 unsigned char buf[ECC_BUF_SIZE]; local
55 zeromem(buf, sizeof(buf));
56 mp_to_unsigned_bin(key->pubkey.x, buf + (numlen - mp_unsigned_bin_size(key->pubkey.x)));
57 XMEMCPY(out+1, buf, numlen);
60 zeromem(buf, sizeof(buf));
61 mp_to_unsigned_bin(key->pubkey.y, buf + (numlen - mp_unsigned_bin_size(key->pubkey.y)));
62 XMEMCPY(out+1+numlen, buf, numlen);
/external/smack/src/org/jivesoftware/smack/proxy/
H A DSocks5ProxySocketFactory.java94 byte[] buf=new byte[1024];
118 buf[index++]=5;
120 buf[index++]=2;
121 buf[index++]=0; // NO AUTHENTICATION REQUIRED
122 buf[index++]=2; // USERNAME/PASSWORD
124 out.write(buf, 0, index);
136 //in.read(buf, 0, 2);
137 fill(in, buf, 2);
140 switch((buf[1])&0xff)
171 buf[inde
360 fill(InputStream in, byte[] buf, int len) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/style/
H A DX500NameTokenizer.java14 private StringBuffer buf = new StringBuffer(); field in class:X500NameTokenizer
47 buf.setLength(0);
61 if (c == '#' && buf.charAt(buf.length() - 1) == '=')
63 buf.append('\\');
67 buf.append('\\');
69 buf.append(c);
77 if (c == '#' && buf.charAt(buf.length() - 1) == '=')
79 buf
[all...]
/external/e2fsprogs/contrib/
H A Dmake-sparse.c23 int full_read(int fd, char *buf, size_t count) argument
29 got = read(fd, buf, count);
41 buf += got;
52 char buf[1024]; local
64 got = full_read(0, buf, sizeof(buf));
67 if (got == sizeof(buf)) {
68 for (i=0; i < sizeof(buf); i++)
69 if (buf[i])
71 if (i == sizeof(buf)) {
[all...]
/external/kernel-headers/original/linux/
H A Drelay.h50 unsigned int cpu; /* this buf's cpu */
66 struct rchan_buf *buf[NR_CPUS]; /* per-cpu channel buffers */ member in struct:rchan
76 * @buf: the channel buffer containing the new sub-buffer
91 int (*subbuf_start) (struct rchan_buf *buf,
98 * @buf: the channel buffer
103 void (*buf_mapped)(struct rchan_buf *buf,
108 * @buf: the channel buffer
113 void (*buf_unmapped)(struct rchan_buf *buf,
120 * @buf: the channel buffer
141 struct rchan_buf *buf,
195 struct rchan_buf *buf; local
222 struct rchan_buf *buf; local
246 struct rchan_buf *buf = chan->buf[smp_processor_id()]; local
267 subbuf_start_reserve(struct rchan_buf *buf, size_t length) argument
[all...]
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/
H A DDirectByteBufferTest.java24 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH);
25 baseBuf = buf;
30 buf = null;
48 assertTrue(buf.isDirect());
53 assertTrue(buf.hasArray());
54 // assertFalse(buf.hasArray());
58 assertFalse(buf.isReadOnly());
H A DHeapByteBufferTest.java26 buf = ByteBuffer.allocate(BUFFER_LENGTH);
27 baseBuf = buf;
32 buf = null;
50 assertFalse(buf.isDirect());
54 assertTrue(buf.hasArray());
58 assertFalse(buf.isReadOnly());
/external/bison/lib/
H A Dstrerror.c39 static char buf[STACKBUF_LEN]; local
58 verify (sizeof buf >= sizeof (fmt) + INT_STRLEN_BOUND (n));
59 sprintf (buf, fmt, n);
61 return buf;
66 if (sizeof buf <= len)
69 return memcpy (buf, msg, len + 1);
/external/dropbear/
H A Drsa.h47 void buf_put_rsa_sign(buffer* buf, rsa_key *key, const unsigned char* data,
50 int buf_rsa_verify(buffer * buf, rsa_key *key, const unsigned char* data,
53 int buf_get_rsa_pub_key(buffer* buf, rsa_key *key);
54 int buf_get_rsa_priv_key(buffer* buf, rsa_key *key);
55 void buf_put_rsa_pub_key(buffer* buf, rsa_key *key);
56 void buf_put_rsa_priv_key(buffer* buf, rsa_key *key);
/external/jmonkeyengine/engine/src/core/com/jme3/scene/mesh/
H A DIndexByteBuffer.java45 private ByteBuffer buf; field in class:IndexByteBuffer
48 this.buf = buffer;
53 return buf.get(i) & 0x000000FF;
58 buf.put(i, (byte) value);
63 return buf.limit();
68 return buf;
H A DIndexShortBuffer.java45 private ShortBuffer buf; field in class:IndexShortBuffer
48 this.buf = buffer;
53 return buf.get(i) & 0x0000FFFF;
58 buf.put(i, (short) value);
63 return buf.limit();
68 return buf;
/external/libselinux/src/
H A Dgetenforce.c16 char buf[20]; local
28 memset(buf, 0, sizeof buf);
29 ret = read(fd, buf, sizeof buf - 1);
34 if (sscanf(buf, "%d", &enforce) != 1)
/external/openssl/crypto/ec/
H A Dec_print.c66 unsigned char *buf; local
73 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
76 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx))
78 OPENSSL_free(buf);
82 ret = BN_bin2bn(buf, buf_len, ret);
84 OPENSSL_free(buf);
95 unsigned char *buf; local
99 buf = OPENSSL_malloc(buf_len);
100 if (buf == NULL)
103 if (!BN_bn2bin(bn, buf))
142 unsigned char *buf, *pbuf; local
179 EC_POINT_hex2point(const EC_GROUP *group, const char *buf, EC_POINT *point, BN_CTX *ctx) argument
[all...]
/external/openssl/crypto/lhash/
H A Dlh_test.c67 char buf[256]; local
75 buf[0]='\0';
76 fgets(buf,256,stdin);
77 if (buf[0] == '\0') break;
78 i=strlen(buf);
80 memcpy(p,buf,i+1);
/external/qemu/hw/
H A Dsmbios.c115 char buf[1024]; local
117 if (get_param_value(buf, sizeof(buf), "vendor", t))
119 strlen(buf) + 1, buf);
120 if (get_param_value(buf, sizeof(buf), "version", t))
122 strlen(buf) + 1, buf);
123 if (get_param_value(buf, sizeo
139 char buf[1024]; local
169 char buf[1024]; local
[all...]
/external/valgrind/main/coregrind/m_gdbserver/
H A Dvalgrind-low-mips32.c144 void transfer_register (ThreadId tid, int abs_regno, void * buf, argument
155 case 0: VG_(transfer) (&mips1->guest_r0, buf, dir, size, mod); break;
156 case 1: VG_(transfer) (&mips1->guest_r1, buf, dir, size, mod); break;
157 case 2: VG_(transfer) (&mips1->guest_r2, buf, dir, size, mod); break;
158 case 3: VG_(transfer) (&mips1->guest_r3, buf, dir, size, mod); break;
159 case 4: VG_(transfer) (&mips1->guest_r4, buf, dir, size, mod); break;
160 case 5: VG_(transfer) (&mips1->guest_r5, buf, dir, size, mod); break;
161 case 6: VG_(transfer) (&mips1->guest_r6, buf, dir, size, mod); break;
162 case 7: VG_(transfer) (&mips1->guest_r7, buf, dir, size, mod); break;
163 case 8: VG_(transfer) (&mips1->guest_r8, buf, di
[all...]

Completed in 3070 milliseconds

1234567891011>>