/external/curl/docs/examples/ |
ftpget.c | 33 FILE *stream; member in struct:FtpFile 36 static size_t my_fwrite(void *buffer, size_t size, size_t nmemb, void *stream) 38 struct FtpFile *out = (struct FtpFile *)stream; 39 if(out && !out->stream) { 41 out->stream = fopen(out->filename, "wb"); 42 if(!out->stream) 45 return fwrite(buffer, size, nmemb, out->stream); 86 if(ftpfile.stream) 87 fclose(ftpfile.stream); /* close the local file */
|
ftpsget.c | 34 FILE *stream; member in struct:FtpFile 38 void *stream) 40 struct FtpFile *out = (struct FtpFile *)stream; 41 if(out && !out->stream) { 43 out->stream = fopen(out->filename, "wb"); 44 if(!out->stream) 47 return fwrite(buffer, size, nmemb, out->stream); 93 if(ftpfile.stream) 94 fclose(ftpfile.stream); /* close the local file */
|
sftpget.c | 43 FILE *stream; member in struct:FtpFile 47 void *stream) 49 struct FtpFile *out = (struct FtpFile *)stream; 50 if(out && !out->stream) { 52 out->stream = fopen(out->filename, "wb"); 53 if(!out->stream) 56 return fwrite(buffer, size, nmemb, out->stream); 104 if(ftpfile.stream) 105 fclose(ftpfile.stream); /* close the local file */
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/ |
MediaStoreStreamLoader.java | 1 package com.bumptech.glide.load.model.stream;
|
StreamUrlLoader.java | 1 package com.bumptech.glide.load.model.stream; 22 * The default factory for {@link com.bumptech.glide.load.model.stream.StreamUrlLoader}s.
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/ |
Example.java | 26 InputStream stream = new ByteArrayInputStream(code.getBytes("UTF-8")); local 27 CompilationUnit cu = JavaParser.parse(stream);
|
/external/junit/src/main/java/org/junit/experimental/results/ |
PrintableResult.java | 59 ByteArrayOutputStream stream = new ByteArrayOutputStream(); local 60 new TextListener(new PrintStream(stream)).testRunFinished(result); 61 return stream.toString();
|
/external/libbrillo/brillo/streams/ |
stream_errors.cc | 9 namespace stream { namespace in namespace:brillo::errors 11 const char kDomain[] = "stream.io"; 19 } // namespace stream
|
/external/libchrome/base/strings/ |
string16_unittest.cc | 18 // Basic stream test. 20 std::ostringstream stream; local 21 stream << "Empty '" << string16() << "' standard '" 24 stream.str().c_str()); 46 std::ostringstream stream; local 47 stream << initial_surrogate << "," << final_surrogate << "," 51 stream.str().c_str());
|
/external/libmicrohttpd/src/microspdy/ |
alstructures.h | 37 * SPDY stream in whose context the request was received 39 struct SPDYF_Stream *stream; member in struct:SPDY_Request
|
/external/libtextclassifier/util/strings/ |
numbers.cc | 65 std::stringstream stream; local 66 stream << input; 67 return stream.str();
|
/external/ltp/lib/ |
safe_stdio.c | 76 FILE *stream; local 80 stream = popen(command, type); 82 if (stream == NULL) { 96 return stream;
|
/external/nanopb-c/examples/using_union_messages/ |
encode.c | 17 bool encode_unionmessage(pb_ostream_t *stream, const pb_field_t messagetype[], const void *message) 25 if (!pb_encode_tag_for_field(stream, field)) 28 return pb_encode_submessage(stream, messagetype, message); 45 pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); local 53 status = encode_unionmessage(&stream, MsgType1_fields, &msg); 59 status = encode_unionmessage(&stream, MsgType2_fields, &msg); 65 status = encode_unionmessage(&stream, MsgType3_fields, &msg); 80 fwrite(buffer, 1, stream.bytes_written, stdout);
|
/external/nanopb-c/tests/alltypes/ |
decode_alltypes.c | 20 bool check_alltypes(pb_istream_t *stream, int mode) 27 if (!pb_decode(stream, AllTypes_fields, &alltypes)) 193 pb_istream_t stream; local 203 stream = pb_istream_from_buffer(buffer, count); 206 if (!check_alltypes(&stream, mode)) 208 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream));
|
/external/nanopb-c/tests/alltypes_pointer/ |
decode_alltypes_pointer.c | 15 bool check_alltypes(pb_istream_t *stream, int mode) 23 if (!pb_decode(stream, AllTypes_fields, &alltypes)) 151 pb_istream_t stream; local 161 stream = pb_istream_from_buffer(buffer, count); 164 if (!check_alltypes(&stream, mode)) 166 fprintf(stderr, "Test failed: %s\n", PB_GET_ERROR(&stream));
|
/external/nanopb-c/tests/backwards_compatibility/ |
decode_legacy.c | 23 bool check_alltypes(pb_istream_t *stream, int mode) 30 if (!pb_decode(stream, AllTypes_fields, &alltypes)) 182 pb_istream_t stream; local 192 stream = pb_istream_from_buffer(buffer, count); 195 if (!check_alltypes(&stream, mode)) 197 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream));
|
/external/nanopb-c/tests/basic_buffer/ |
decode_buffer.c | 16 bool print_person(pb_istream_t *stream) 21 if (!pb_decode(stream, Person_fields, &person)) 64 pb_istream_t stream; local 78 stream = pb_istream_from_buffer(buffer, count); 81 if (!print_person(&stream)) 83 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream));
|
/external/nanopb-c/tests/basic_stream/ |
decode_stream.c | 12 bool print_person(pb_istream_t *stream) 17 if (!pb_decode(stream, Person_fields, &person)) 58 bool callback(pb_istream_t *stream, uint8_t *buf, size_t count) 60 FILE *file = (FILE*)stream->state; 66 stream->bytes_left = 0; 73 pb_istream_t stream = {&callback, NULL, SIZE_MAX}; local 74 stream.state = stdin; 77 if (!print_person(&stream)) 79 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream));
|
/external/nanopb-c/tests/callbacks/ |
decode_callbacks.c | 10 bool print_string(pb_istream_t *stream, const pb_field_t *field, void **arg) 15 if (stream->bytes_left > sizeof(buffer) - 1) 18 if (!pb_read(stream, buffer, stream->bytes_left)) 28 bool print_int32(pb_istream_t *stream, const pb_field_t *field, void **arg) 31 if (!pb_decode_varint(stream, &value)) 38 bool print_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) 41 if (!pb_decode_fixed32(stream, &value)) 48 bool print_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) 51 if (!pb_decode_fixed64(stream, &value) 62 pb_istream_t stream; local [all...] |
/external/nanopb-c/tests/extensions/ |
decode_extensions.c | 20 pb_istream_t stream; local 31 stream = pb_istream_from_buffer(buffer, count); 45 if (!pb_decode(&stream, AllTypes_fields, &alltypes)) 47 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream));
|
encode_extensions.c | 15 pb_ostream_t stream; local 34 /* Set up the output stream */ 35 stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); 38 if (pb_encode(&stream, AllTypes_fields, &alltypes)) 41 fwrite(buffer, 1, stream.bytes_written, stdout); 46 fprintf(stderr, "Encoding failed: %s\n", PB_GET_ERROR(&stream));
|
/external/puffin/src/ |
sample_generator.cc | 31 z_stream stream; local 32 stream.next_in = (z_const Bytef*)uncomp.data(); 33 stream.avail_in = static_cast<unsigned int>(uncomp.size()); 34 stream.next_out = comp->data(); 35 stream.avail_out = comp->size(); 37 stream.zalloc = nullptr; 38 stream.zfree = nullptr; 39 stream.opaque = nullptr; 42 Z_OK == deflateInit2(&stream, compression, Z_DEFLATED, -15, 8, strategy)); 44 TEST_AND_RETURN_FALSE(Z_STREAM_END == deflate(&stream, Z_FINISH)) [all...] |
/external/python/cpython3/Modules/zlib/ |
compress.c | 29 z_stream stream; local 37 stream.zalloc = (alloc_func)0; 38 stream.zfree = (free_func)0; 39 stream.opaque = (voidpf)0; 41 err = deflateInit(&stream, level); 44 stream.next_out = dest; 45 stream.avail_out = 0; 46 stream.next_in = (z_const Bytef *)source; 47 stream.avail_in = 0; 50 if (stream.avail_out == 0) [all...] |
uncompr.c | 25 an incomplete zlib stream. 33 z_stream stream; local 37 Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */ 49 stream.next_in = (z_const Bytef *)source; 50 stream.avail_in = 0; 51 stream.zalloc = (alloc_func)0; 52 stream.zfree = (free_func)0; 53 stream.opaque = (voidpf)0; 55 err = inflateInit(&stream); 58 stream.next_out = dest [all...] |
/external/selinux/libsemanage/src/ |
debug.c | 59 FILE *stream = NULL; local 65 stream = stderr; 69 stream = stderr; 72 stream = stdout; 76 fprintf(stream, "%s.%s: ", 82 vfprintf(stream, fmt, ap); 86 fprintf(stream, " (%s).", strerror(errsv)); 88 fprintf(stream, "\n");
|