Searched defs:bufsize (Results 1 - 25 of 115) sorted by relevance

12345

/external/c-ares/
H A Dares__read_line.c28 * ares__read_line multiple times with the same buf and bufsize
29 * pointers; *buf will be reallocated and *bufsize adjusted as
33 int ares__read_line(FILE *fp, char **buf, size_t *bufsize) argument
44 *bufsize = 128;
49 int bytestoread = aresx_uztosi(*bufsize - offset);
60 if(len < *bufsize - 1)
64 newbuf = realloc(*buf, *bufsize * 2);
68 *bufsize *= 2;
/external/libvncserver/libvncserver/
H A Drfbssl_none.c36 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
41 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
46 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
H A Drfbssl_openssl.c86 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
91 while ((ret = SSL_write(ctx->ssl, buf, bufsize)) <= 0) {
98 int rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
103 while ((ret = SSL_peek(ctx->ssl, buf, bufsize)) <= 0) {
110 int rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
115 while ((ret = SSL_read(ctx->ssl, buf, bufsize)) <= 0) {
H A Drfbssl_gnutls.c148 static int rfbssl_do_read(rfbClientPtr cl, char *buf, int bufsize) argument
153 while ((ret = gnutls_record_recv(ctx->session, buf, bufsize)) < 0) {
172 int rfbssl_write(rfbClientPtr cl, const char *buf, int bufsize) argument
177 while ((ret = gnutls_record_send(ctx->session, buf, bufsize)) < 0) {
193 static void rfbssl_gc_peekbuf(struct rfbssl_ctx *ctx, int bufsize) argument
197 if (spaceleft < bufsize) {
204 static int __rfbssl_read(rfbClientPtr cl, char *buf, int bufsize, int peek) argument
209 rfbssl_gc_peekbuf(ctx, bufsize);
213 ret = bufsize < ctx->peeklen ? bufsize
241 rfbssl_read(rfbClientPtr cl, char *buf, int bufsize) argument
246 rfbssl_peek(rfbClientPtr cl, char *buf, int bufsize) argument
[all...]
/external/pdfium/fpdfsdk/src/
H A Dfpdfdoc_embeddertest.cpp57 unsigned long bufsize = FPDFAction_GetFilePath(action, nullptr, 0); local
58 ASSERT_EQ(kExpectedLength, bufsize);
61 EXPECT_EQ(bufsize, FPDFAction_GetFilePath(action, buf, bufsize));
/external/skia/tests/
H A DReader32Test.cpp45 const size_t bufsize = sizeof(data) > sizeof(data2) ? local
47 char buffer[bufsize];
/external/vboot_reference/firmware/lib/
H A Dutility_string.c13 uint32_t Uint64ToString(char *buf, uint32_t bufsize, uint64_t value, argument
38 if (++usedsize > bufsize)
45 if (++usedsize > bufsize)
/external/fec/
H A Dsumsq_test.c30 int bufsize = 2048; local
61 bufsize = atoi(optarg);
75 buf = (signed short *)calloc(bufsize,sizeof(signed short));
78 (void)sumsq(buf,bufsize);
85 length = (random() % bufsize) - offset;
88 for(i=0;i<bufsize;i++)
/external/libjpeg-turbo/
H A Djdatadst-tj.c43 size_t bufsize; member in struct:__anon9706
95 nextsize = dest->bufsize * 2;
101 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
108 dest->pub.next_output_byte = nextbuffer + dest->bufsize;
109 dest->pub.free_in_buffer = dest->bufsize;
112 dest->bufsize = nextsize;
133 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer);
194 dest->bufsize = *outsize;
195 dest->pub.free_in_buffer = dest->bufsize;
H A Djdatadst.c55 size_t bufsize; member in struct:__anon9708
137 nextsize = dest->bufsize * 2;
143 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
150 dest->pub.next_output_byte = nextbuffer + dest->bufsize;
151 dest->pub.free_in_buffer = dest->bufsize;
154 dest->bufsize = nextsize;
194 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer);
277 dest->pub.free_in_buffer = dest->bufsize = *outsize;
/external/boringssl/src/crypto/asn1/
H A Df_enum.c100 int i,j,k,m,n,again,bufsize; local
107 bufsize=BIO_gets(bp,buf,size);
110 if (bufsize < 1) goto err_sl;
111 i=bufsize;
189 bufsize=BIO_gets(bp,buf,size);
H A Df_int.c105 int i,j,k,m,n,again,bufsize; local
112 bufsize=BIO_gets(bp,buf,size);
115 if (bufsize < 1) goto err_sl;
116 i=bufsize;
193 bufsize=BIO_gets(bp,buf,size);
H A Df_string.c100 int i,j,k,m,n,again,bufsize; local
105 bufsize=BIO_gets(bp,buf,size);
108 if (bufsize < 1)
117 i=bufsize;
187 bufsize=BIO_gets(bp,buf,size);
/external/libpcap/tests/
H A Dopentest.c54 int dorfmon, dopromisc, snaplen, useactivate, bufsize; local
63 bufsize = 0;
100 bufsize = atoi(optarg)*1024;
101 if (bufsize <= 0)
103 useactivate = 1; /* required for bufsize */
140 if (bufsize != 0) {
141 status = pcap_set_buffer_size(pd, bufsize);
177 "Usage: %s [ -Ipa ] [ -i interface ] [ -s snaplen ] [ -B bufsize ]\n",
/external/mesa3d/src/glx/
H A Drenderpix.c167 const GLint bufsize = image1len + image2len; local
181 buf = (GLubyte *) Xmalloc(bufsize);
194 bufsize);
/external/opencv3/3rdparty/libjpeg/
H A Djdatadst.c52 size_t bufsize; member in struct:__anon14827
130 nextsize = dest->bufsize * 2;
136 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
143 dest->pub.next_output_byte = nextbuffer + dest->bufsize;
144 dest->pub.free_in_buffer = dest->bufsize;
147 dest->bufsize = nextsize;
185 *dest->outsize = dest->bufsize - dest->pub.free_in_buffer;
269 dest->pub.free_in_buffer = dest->bufsize = *outsize;
/external/vboot_reference/utility/
H A Dimage_types.c35 ImageFormat identify_image_type(const void *buf, uint32_t bufsize, argument
41 if (bufsize < sizeof(BMP_IMAGE_HEADER) &&
42 bufsize < sizeof(FontArrayHeader)) {
/external/bison/src/
H A Dlocation.c37 add_column_width (int column, char const *buf, size_t bufsize) argument
44 if (INT_MAX / 2 <= bufsize)
46 width = mbsnwidth (buf, bufsize, 0);
49 width = bufsize;
/external/e2fsprogs/lib/ext2fs/
H A Dswapfs.c173 void ext2fs_swap_ext_attr(char *to, char *from, int bufsize, int has_header) argument
180 char *from_end = (char *)from_header + bufsize;
183 memcpy(to_header, from_header, bufsize);
204 int bufsize)
282 if (bufsize < (int) (sizeof(struct ext2_inode) + sizeof(__u16)))
312 if (bufsize < (int) i)
331 bufsize - sizeof(struct ext2_inode) -
202 ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t, struct ext2_inode_large *f, int hostorder, int bufsize) argument
/external/libdivsufsort/lib/
H A Ddivsufsort.c46 saidx_t i, j, k, t, m, bufsize; local
105 buf = SA + m, bufsize = (n - (2 * m)) / tmp;
110 curbuf = buf + tmp * bufsize;
129 curbuf, bufsize, 2, n, *(SA + k) == (m - 1));
133 buf = SA + m, bufsize = n - (2 * m);
139 buf, bufsize, 2, n, *(SA + i) == (m - 1));
/external/ppp/pppd/include/
H A Dpcap-int.h81 int bufsize; member in struct:pcap
/external/strace/
H A Dpathtrace.c99 getfdpath(struct tcb *tcp, int fd, char *buf, unsigned bufsize) argument
108 n = readlink(linkpath, buf, bufsize - 1);
111 * it returns truncated result (IOW: n == bufsize - 1).
/external/vboot_reference/host/lib/
H A Dutil_misc.c44 uint32_t bufsize; local
51 bufsize = (2 + nwords + nwords) * sizeof(uint32_t);
52 outbuf = malloc(bufsize);
57 *keyb_size = bufsize;
/external/vboot_reference/tests/
H A Dvb21_host_sig_tests.c54 uint32_t bufsize; local
121 bufsize = c_sig_offs + size;
122 buf = calloc(1, bufsize);
125 c->total_size = bufsize;
138 bufsize = c_sig_offs + size;
139 buf = calloc(1, bufsize);
142 c->total_size = bufsize;
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_libc_test.cc62 static void temp_file_name(char *buf, size_t bufsize, const char *prefix) { argument
72 internal_strncpy(buf, tmp_path, bufsize);
83 internal_snprintf(buf, bufsize, "%s/%s%d", tmpdir, prefix, uid);

Completed in 1881 milliseconds

12345