Searched defs:stream (Results 126 - 150 of 1361) sorted by relevance

1234567891011>>

/external/nanopb-c/examples/using_union_messages/
H A Ddecode.c11 /* This function reads manually the first tag from the stream and finds the
17 const pb_field_t* decode_unionmessage_type(pb_istream_t *stream) argument
23 while (pb_decode_tag(stream, &wire_type, &tag, &eof))
39 pb_skip_field(stream, wire_type);
45 bool decode_unionmessage_contents(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct) argument
49 if (!pb_make_string_substream(stream, &substream))
53 pb_close_string_substream(stream, &substream);
62 pb_istream_t stream = pb_istream_from_buffer(buffer, count); local
64 const pb_field_t *type = decode_unionmessage_type(&stream);
70 status = decode_unionmessage_contents(&stream, MsgType1_field
[all...]
H A Dencode.c17 bool encode_unionmessage(pb_ostream_t *stream, const pb_field_t messagetype[], const void *message) argument
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_pointer/
H A Ddecode_alltypes_pointer.c15 bool check_alltypes(pb_istream_t *stream, int mode) argument
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/basic_stream/
H A Ddecode_stream.c12 bool print_person(pb_istream_t *stream) argument
17 if (!pb_decode(stream, Person_fields, &person))
58 bool callback(pb_istream_t *stream, uint8_t *buf, size_t count) argument
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/
H A Ddecode_callbacks.c10 bool print_string(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
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) argument
31 if (!pb_decode_varint(stream, &value))
38 bool print_fixed32(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
41 if (!pb_decode_fixed32(stream, &value))
48 bool print_fixed64(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
51 if (!pb_decode_fixed64(stream,
62 pb_istream_t stream; local
[all...]
H A Dencode_callbacks.c9 bool encode_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument
13 if (!pb_encode_tag_for_field(stream, field))
16 return pb_encode_string(stream, (uint8_t*)str, strlen(str));
19 bool encode_int32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument
21 if (!pb_encode_tag_for_field(stream, field))
24 return pb_encode_varint(stream, 42);
27 bool encode_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument
31 if (!pb_encode_tag_for_field(stream, field))
34 return pb_encode_fixed32(stream, &value);
37 bool encode_fixed64(pb_ostream_t *stream, cons argument
47 encode_repeatedstring(pb_ostream_t *stream, const pb_field_t *field, void * const *arg) argument
66 pb_ostream_t stream; local
[all...]
/external/nanopb-c/tests/extensions/
H A Ddecode_extensions.c20 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));
/external/pdfium/third_party/freetype/src/base/
H A Dftsystem.c152 /* system-specific stream handle from a given FreeType stream object */
153 #define STREAM_FILE( stream ) ( (FT_FILE*)stream->descriptor.pointer )
162 /* The function to close a stream. */
165 /* stream :: A pointer to the stream object. */
168 ft_ansi_stream_close( FT_Stream stream )
170 ft_fclose( STREAM_FILE( stream ) );
172 stream
201 ft_ansi_stream_io( FT_Stream stream, unsigned long offset, unsigned char* buffer, unsigned long count ) argument
[all...]
/external/pdfium/third_party/zlib_v128/
H A Dcompress.c29 z_stream stream; local
32 stream.next_in = (z_const Bytef *)source;
33 stream.avail_in = (uInt)sourceLen;
36 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
38 stream.next_out = dest;
39 stream.avail_out = (uInt)*destLen;
40 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
42 stream.zalloc = (alloc_func)0;
43 stream.zfree = (free_func)0;
44 stream
[all...]
/external/r8/src/main/java/com/android/tools/r8/code/
H A DBaseInstructionFactory.java10 static Instruction create(int high, int opcode, BytecodeStream stream, argument
14 return Nop.create(high, stream);
16 return new Move(high, stream);
18 return new MoveFrom16(high, stream);
20 return new Move16(high, stream);
22 return new MoveWide(high, stream);
24 return new MoveWideFrom16(high, stream);
26 return new MoveWide16(high, stream);
28 return new MoveObject(high, stream);
30 return new MoveObjectFrom16(high, stream);
[all...]
H A DSwitchPayload.java10 SwitchPayload(int high, BytecodeStream stream) { argument
11 super(high, stream);
/external/selinux/libsemanage/src/
H A Ddebug.c59 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");
/external/selinux/libsepol/src/
H A Ddebug.c49 FILE *stream = NULL; local
55 stream = stderr;
59 stream = stdout;
63 fprintf(stream, "%s.%s: ",
68 vfprintf(stream, fmt, ap);
71 fprintf(stream, "\n");
/external/skia/src/core/
H A DSkDocument.cpp12 SkDocument::SkDocument(SkWStream* stream, void (*doneProc)(SkWStream*, bool)) { argument
13 fStream = stream; // we do not own this object.
78 // we don't own the stream, but we mark it nullptr since we can
99 // we don't own the stream, but we mark it nullptr since we can
/external/skia/src/utils/mac/
H A DSkStream_mac.cpp25 SkStream* stream = (SkStream*)info; local
26 SkASSERT(stream->getMemoryBase() == addr);
27 SkASSERT(stream->getLength() == size);
28 delete stream;
53 CGDataProviderRef SkCreateDataProviderFromStream(std::unique_ptr<SkStreamRewindable> stream) { argument
56 const void* addr = stream->getMemoryBase();
58 // special-case when the stream is just a block of ram
59 size_t size = stream->getLength();
60 return CGDataProviderCreateWithData(stream.release(), addr, size, delete_stream_proc);
70 return CGDataProviderCreateSequential(stream
[all...]
/external/skia/src/xps/
H A DSkXPSDocument.cpp16 SkXPSDocument::SkXPSDocument(SkWStream* stream, argument
19 : SkDocument(stream, nullptr)
28 fDevice.beginPortfolio(stream, fXpsFactory.get());
58 sk_sp<SkDocument> SkDocument::MakeXPS(SkWStream* stream, argument
62 return stream && factory
63 ? sk_make_sp<SkXPSDocument>(stream, dpi, std::move(factory))
/external/skia/tests/
H A DCodecExactReadTest.cpp17 // This class wraps another SkStream. It does not own the underlying stream, so
18 // that the underlying stream can be reused starting from where the first
22 explicit UnowningStream(SkStream* stream) argument
23 : fStream(stream)
68 SkMemoryStream stream(std::move(multiData));
70 std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(new UnowningStream(&stream)));
H A DPDFGlyphsToUnicodeTest.cpp19 static bool stream_equals(const SkDynamicMemoryWStream& stream, size_t offset, argument
25 const size_t streamSize = stream.bytesWritten();
32 stream.copyTo(data.get());
/external/skia/tools/
H A Ddump_record.cpp49 std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(FLAGS_skps[i]); local
50 if (!stream) {
54 sk_sp<SkPicture> src(SkPicture::MakeFromStream(stream.get()));
/external/skia/tools/viewer/
H A DSKPSlide.cpp38 std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(path); local
39 if (!stream) {
44 auto pic = SkPicture::MakeFromStream(stream.get());
/external/toybox/lib/
H A Dportability.c34 ssize_t getdelim(char **linep, size_t *np, int delim, FILE *stream) argument
54 while ((ch = getc(stream)) != EOF) {
82 ssize_t getline(char **linep, size_t *np, FILE *stream) argument
84 return getdelim(linep, np, '\n', stream);
/external/v8/src/base/debug/
H A Dstack_trace.cc33 std::stringstream stream; local
34 OutputToStream(&stream);
35 return stream.str();
/external/v8/src/
H A Dunicode-decoder.cc14 const uint8_t* stream, size_t stream_length) {
15 // Assume everything will fit in the buffer and stream won't be needed.
20 // Loop until stream is read, writing to buffer as long as buffer has space.
24 uint32_t character = Utf8::ValueOf(stream, stream_length, &cursor);
26 stream += cursor;
44 unbuffered_start_ = stream;
54 unbuffered_start_ = stream - cursor;
61 void Utf8DecoderBase::WriteUtf16Slow(const uint8_t* stream, argument
66 uint32_t character = Utf8::ValueOf(stream, stream_length, &cursor);
67 // There's a total lack of bounds checking for stream
13 Reset(uint16_t* buffer, size_t buffer_length, const uint8_t* stream, size_t stream_length) argument
[all...]
/external/webrtc/talk/app/webrtc/
H A Dmediastream.cc47 rtc::RefCountedObject<MediaStream>* stream = local
49 return stream;
H A Dmediastreamobserver.h37 // Helper class which will listen for changes to a stream and emit the
41 explicit MediaStreamObserver(MediaStreamInterface* stream);
44 const MediaStreamInterface* stream() const { return stream_; } function in class:webrtc::MediaStreamObserver

Completed in 497 milliseconds

1234567891011>>