Searched defs:stream (Results 76 - 100 of 753) sorted by relevance

1234567891011>>

/external/lzma/CPP/7zip/Common/
H A DInBuffer.cpp36 void CInBuffer::SetStream(ISequentialInStream *stream) argument
38 _stream = stream;
H A DLockedStream.h15 void Init(IInStream *stream) argument
16 { _stream = stream; }
H A DOffsetStream.cpp8 HRESULT COffsetOutStream::Init(IOutStream *stream, UInt64 offset) argument
11 _stream = stream;
H A DOutBuffer.cpp28 void COutBuffer::SetStream(ISequentialOutStream *stream) argument
30 _stream = stream;
H A DStreamUtils.cpp9 HRESULT ReadStream(ISequentialInStream *stream, void *data, size_t *processedSize) argument
17 HRESULT res = stream->Read(data, curSize, &processedSizeLoc);
28 HRESULT ReadStream_FALSE(ISequentialInStream *stream, void *data, size_t size) argument
31 RINOK(ReadStream(stream, data, &processedSize));
35 HRESULT ReadStream_FAIL(ISequentialInStream *stream, void *data, size_t size) argument
38 RINOK(ReadStream(stream, data, &processedSize));
42 HRESULT WriteStream(ISequentialOutStream *stream, const void *data, size_t size) argument
48 HRESULT res = stream->Write(data, curSize, &processedSizeLoc);
/external/marisa-trie/tests/
H A Dvector-test.cc246 std::stringstream stream; local
247 bv.write(stream);
254 bv.read(stream);
/external/marisa-trie/v0_1_5/tests/
H A Dvector-test.cc250 std::stringstream stream; local
251 bv.write(stream);
258 bv.read(stream);
/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/core/src/fxcodec/fx_zlib/zlib_v128/
H A Dfx_zlib_compress.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/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/freetype/src/cid/
H A Dcidparse.c52 FT_Stream stream,
65 parser->stream = stream;
73 if ( ft_strncmp( (char *)stream->cursor,
98 stream_len = stream->size - FT_STREAM_POS();
214 FT_Stream stream = parser->stream; local
/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/dm/
H A DDMSrcSinkAndroid.cpp41 SkWStream* stream,
66 return fSink->draw(proxy, bitmap, stream, log);
39 draw(const Src& src, SkBitmap* bitmap, SkWStream* stream, SkString* log) const argument
/external/skia/experimental/PdfViewer/pdfparser/native/
H A DSkPdfNativeObject.cpp51 // in this way we create the image from the DCT stream directly.
79 SkPdfStreamCommonDictionary* stream = (SkPdfStreamCommonDictionary*)this; local
81 if (!stream->has_Filter()) {
83 } else if (stream->isFilterAName(NULL)) {
84 SkString filterName = stream->getFilterAsName(NULL);
86 } else if (stream->isFilterAArray(NULL)) {
87 const SkPdfArray* filters = stream->getFilterAsArray(NULL);
/external/skia/src/codec/
H A DSkJpegUtility.cpp21 * Fill the input buffer from the stream
38 * Skip a certain number of bytes in the stream
61 * We do not need to do anything to terminate our stream
68 * We provide skia implementations of all of the stream processing functions required by libjpeg
70 skjpeg_source_mgr::skjpeg_source_mgr(SkStream* stream) argument
71 : fStream(stream)
/external/skia/src/doc/
H A DSkDocument.cpp11 SkDocument::SkDocument(SkWStream* stream, void (*doneProc)(SkWStream*, bool)) { argument
12 fStream = stream; // we do not own this object.
71 // we don't own the stream, but we mark it NULL since we can
92 // we don't own the stream, but we mark it NULL since we can
H A DSkDocument_XPS.cpp14 SkDocument_XPS(SkWStream* stream, argument
17 : SkDocument(stream, doneProc) {
22 fDevice.beginPortfolio(stream);
65 SkDocument* SkDocument::CreateXPS(SkWStream* stream, SkScalar dpi) { argument
66 return stream ? SkNEW_ARGS(SkDocument_XPS, (stream, NULL, dpi)) : NULL;
69 static void delete_wstream(SkWStream* stream, bool aborted) { argument
70 SkDELETE(stream);
74 SkAutoTDelete<SkFILEWStream> stream(SkNEW_ARGS(SkFILEWStream, (path)));
75 if (!stream
[all...]
/external/skia/src/images/
H A DSkImageEncoder.cpp15 bool SkImageEncoder::encodeStream(SkWStream* stream, const SkBitmap& bm, argument
18 return this->onEncode(stream, bm, quality);
24 SkFILEWStream stream(file);
25 return this->onEncode(&stream, bm, quality);
29 SkDynamicMemoryWStream stream; local
31 if (this->onEncode(&stream, bm, quality)) {
32 return stream.copyToData();
43 bool SkImageEncoder::EncodeStream(SkWStream* stream, const SkBitmap& bm, Type t, argument
46 return enc.get() && enc.get()->encodeStream(stream, bm, quality);

Completed in 375 milliseconds

1234567891011>>