Home
last modified time | relevance | path

Searched refs:Stream (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime.Tests/
DAntlr.Runtime.Tests.pas47 Stream: IANTLRStringStream;
49 Stream := TANTLRStringStream.Create('One'#13#10'Two');
50 CheckEquals(0, Stream.Index);
51 CheckEquals(0, Stream.CharPositionInLine);
52 CheckEquals(1, Stream.Line);
54 Stream.Consume; // O
55 CheckEquals(1, Stream.Index);
56 CheckEquals(1, Stream.CharPositionInLine);
57 CheckEquals(1, Stream.Line);
59 Stream.Consume; // n
[all …]
DAntlr.Runtime.Tree.Tests.pas653 Stream: ITreeNodeStream;
661 Stream := CreateCommonTreeNodeStream(T);
662 CheckEquals(GetStringOfEntireStreamContentsWithNodeTypesOnly(Stream),' 101 102 103 104');
663 CheckEquals(Stream.ToString, ' 101 2 102 2 103 3 104 3');
669 Stream: ITreeNodeStream;
674 Stream := CreateCommonTreeNodeStream(T);
675 CheckEquals(GetStringOfEntireStreamContentsWithNodeTypesOnly(Stream),' 101 102');
676 CheckEquals(Stream.ToString, ' 101 2 102 3');
682 Stream: ITreeNodeStream;
707 Stream := CreateUnBufferedTreeNodeStream(T);
[all …]
/external/zlib/src/contrib/ada/
Dzlib-streams.adb19 procedure Close (Stream : in out Stream_Type) is
23 if Stream.Mode = Out_Stream or Stream.Mode = Duplex then
26 Flush (Stream, Finish);
28 Close (Stream.Writer);
31 if Stream.Mode = In_Stream or Stream.Mode = Duplex then
32 Close (Stream.Reader);
33 Free (Stream.Buffer);
42 (Stream : out Stream_Type;
78 Stream.Back := Back;
79 Stream.Mode := Mode;
[all …]
Dzlib-streams.ads21 (Stream : in out Stream_Type;
26 (Stream : in out Stream_Type;
30 (Stream : in out Stream_Type;
37 function Read_Total_In (Stream : in Stream_Type) return Count;
41 function Read_Total_Out (Stream : in Stream_Type) return Count;
45 function Write_Total_In (Stream : in Stream_Type) return Count;
49 function Write_Total_Out (Stream : in Stream_Type) return Count;
54 (Stream : out Stream_Type;
80 function Is_Open (Stream : Stream_Type) return Boolean;
82 procedure Close (Stream : in out Stream_Type);
/external/llvm/lib/IR/
DDiagnosticPrinter.cpp24 Stream << C; in operator <<()
29 Stream << C; in operator <<()
34 Stream << C; in operator <<()
39 Stream << Str; in operator <<()
44 Stream << Str; in operator <<()
50 Stream << Str; in operator <<()
55 Stream << N; in operator <<()
59 Stream << N; in operator <<()
65 Stream << N; in operator <<()
70 Stream << N; in operator <<()
[all …]
/external/llvm/unittests/Support/
DYAMLParserTest.cpp34 yaml::Stream Stream(Input, SM); in ExpectParseError() local
36 EXPECT_FALSE(Stream.validate()) << Message << ": " << Input; in ExpectParseError()
37 EXPECT_TRUE(Stream.failed()) << Message << ": " << Input; in ExpectParseError()
43 yaml::Stream Stream(Input, SM); in ExpectParseSuccess() local
44 EXPECT_TRUE(Stream.validate()) << Message << ": " << Input; in ExpectParseSuccess()
161 yaml::Stream Stream("test: |\n Hello\n World\n", SM); in TEST() local
162 yaml::Document &Doc = *Stream.begin(); in TEST()
191 yaml::Stream Stream(StringInArray, SM); in ExpectCanParseString() local
193 = dyn_cast<yaml::SequenceNode>(Stream.begin()->getRoot()); in ExpectCanParseString()
228 yaml::Stream Stream("[\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"]", SM); in TEST() local
[all …]
/external/clang/lib/Frontend/
DSerializedDiagnosticReader.cpp32 llvm::BitstreamCursor Stream(StreamFile); in readDiagnostics() local
35 if (Stream.Read(8) != 'D' || in readDiagnostics()
36 Stream.Read(8) != 'I' || in readDiagnostics()
37 Stream.Read(8) != 'A' || in readDiagnostics()
38 Stream.Read(8) != 'G') in readDiagnostics()
42 while (!Stream.AtEndOfStream()) { in readDiagnostics()
43 if (Stream.ReadCode() != llvm::bitc::ENTER_SUBBLOCK) in readDiagnostics()
47 switch (Stream.ReadSubBlockID()) { in readDiagnostics()
49 if (Stream.ReadBlockInfoBlock()) in readDiagnostics()
53 if ((EC = readMetaBlock(Stream))) in readDiagnostics()
[all …]
DSerializedDiagnosticPrinter.cpp259 : DiagOpts(Diags), Stream(Buffer), OutputFile(File.str()), in SharedState()
269 llvm::BitstreamWriter Stream; member
325 llvm::BitstreamWriter &Stream, in EmitBlockID() argument
329 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETBID, Record); in EmitBlockID()
340 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_BLOCKNAME, Record); in EmitBlockID()
345 llvm::BitstreamWriter &Stream, in EmitRecordID() argument
353 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETRECORDNAME, Record); in EmitRecordID()
401 State->Stream.EmitRecordWithBlob(State->Abbrevs.get(RECORD_FILENAME), Record, in getEmitFile()
412 State->Stream.EmitRecordWithAbbrev(State->Abbrevs.get(RECORD_SOURCE_RANGE), in EmitCharSourceRange()
419 State->Stream.Emit((unsigned)'D', 8); in EmitPreamble()
[all …]
/external/llvm/include/llvm/DebugInfo/CodeView/
DStreamRef.h21 StreamRef() : Stream(nullptr), ViewOffset(0), Length(0) {} in StreamRef()
22 StreamRef(const StreamInterface &Stream) in StreamRef() argument
23 : Stream(&Stream), ViewOffset(0), Length(Stream.getLength()) {} in StreamRef()
24 StreamRef(const StreamInterface &Stream, uint32_t Offset, uint32_t Length) in StreamRef() argument
25 : Stream(&Stream), ViewOffset(Offset), Length(Length) {} in StreamRef()
36 return Stream->readBytes(ViewOffset + Offset, Size, Buffer); in readBytes()
46 if (auto EC = Stream->readLongestContiguousChunk(Offset, Buffer)) in readLongestContiguousChunk()
60 return Stream->writeBytes(ViewOffset + Offset, Data); in writeBytes()
65 Error commit() const { return Stream->commit(); } in commit()
68 if (!Stream) in drop_front()
[all …]
DStreamArray.h37 Error operator()(StreamRef Stream, uint32_t &Len, T &Item) const = delete;
86 explicit VarStreamArray(StreamRef Stream) : Stream(Stream) {} in VarStreamArray() argument
87 VarStreamArray(StreamRef Stream, const Extractor &E) : Stream(Stream), E(E) {} in VarStreamArray() argument
90 : Stream(Other.Stream), E(Other.E) {} in VarStreamArray()
100 StreamRef getUnderlyingStream() const { return Stream; } in getUnderlyingStream()
103 StreamRef Stream;
114 : IterRef(Array.Stream), Array(&Array), HadError(HadError), Extract(E) {
202 FixedStreamArray() : Stream() {} in FixedStreamArray()
203 FixedStreamArray(StreamRef Stream) : Stream(Stream) { in FixedStreamArray() argument
204 assert(Stream.getLength() % sizeof(T) == 0); in FixedStreamArray()
[all …]
/external/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoder.cs9 System.IO.Stream Stream; field in SevenZip.Compression.RangeCoder.Encoder
18 public void SetStream(System.IO.Stream stream) in SetStream()
20 Stream = stream; in SetStream()
25 Stream = null; in ReleaseStream()
30 StartPosition = Stream.Position; in Init()
46 Stream.Flush(); in FlushStream()
51 Stream.Close(); in CloseStream()
72 Stream.WriteByte((byte)(temp + (Low >> 32))); in ShiftLow()
117 Stream.Position - StartPosition + 4; in GetProcessedSizeAdd()
128 public System.IO.Stream Stream; field in SevenZip.Compression.RangeCoder.Decoder
[all …]
/external/vogar/test/vogar/testing/
DInterceptOutputStreamsTest.java27 import vogar.testing.InterceptOutputStreams.Stream;
40 public InterceptOutputStreams iosRule = new InterceptOutputStreams(Stream.OUT, Stream.ERR);
52 assertTrue(iosRule.contents(Stream.OUT).endsWith("\nAfter Tests OUT\n")); in tearDown()
53 assertTrue(iosRule.contents(Stream.ERR).endsWith("\nAfter Tests ERR\n")); in tearDown()
59 final InterceptOutputStreams ios = new InterceptOutputStreams(Stream.OUT, Stream.ERR); in testApply()
66 assertEquals("Hello\n", ios.contents(Stream.OUT)); in testApply()
67 assertEquals("World\n", ios.contents(Stream.ERR)); in testApply()
70 assertEquals("Before Tests OUT\n", iosRule.contents(Stream.OUT)); in testApply()
71 assertEquals("Before Tests ERR\n", iosRule.contents(Stream.ERR)); in testApply()
76 ios.contents(Stream.OUT); in testApply()
[all …]
DInterceptOutputStreams.java39 public enum Stream { enum in InterceptOutputStreams
71 private final EnumSet<Stream> streams;
72 private final EnumMap<Stream, State> streams2State;
77 public InterceptOutputStreams(Stream... streams) { in InterceptOutputStreams()
79 streams2State = new EnumMap<>(Stream.class); in InterceptOutputStreams()
90 public String contents(Stream stream) { in contents()
92 EnumSet<Stream> extra = streams.clone(); in contents()
115 for (Stream stream : streams) { in apply()
135 private final Stream stream;
137 State(Stream stream) throws IOException {
/external/libbrillo/brillo/streams/
Dstream.cc17 bool Stream::TruncateBlocking(ErrorPtr* error) { in TruncateBlocking()
21 bool Stream::SetPosition(uint64_t position, ErrorPtr* error) { in SetPosition()
27 bool Stream::ReadAsync(void* buffer, in ReadAsync()
39 auto callback = base::Bind(&Stream::IgnoreEOSCallback, success_callback); in ReadAsync()
46 bool Stream::ReadAllAsync(void* buffer, in ReadAllAsync()
58 auto callback = base::Bind(&Stream::ReadAllAsyncCallback, in ReadAllAsync()
65 bool Stream::ReadBlocking(void* buffer, in ReadBlocking()
85 bool Stream::ReadAllBlocking(void* buffer, in ReadAllBlocking()
102 bool Stream::WriteAsync(const void* buffer, in WriteAsync()
119 bool Stream::WriteAllAsync(const void* buffer, in WriteAllAsync()
[all …]
Dfake_stream_unittest.cc30 void CreateStream(Stream::AccessMode mode) { in CreateStream()
69 CreateStream(Stream::AccessMode::READ); in TEST_F()
81 CreateStream(Stream::AccessMode::WRITE); in TEST_F()
93 CreateStream(Stream::AccessMode::READ_WRITE); in TEST_F()
105 CreateStream(Stream::AccessMode::READ); in TEST_F()
114 CreateStream(Stream::AccessMode::READ); in TEST_F()
128 CreateStream(Stream::AccessMode::READ); in TEST_F()
146 CreateStream(Stream::AccessMode::READ); in TEST_F()
179 CreateStream(Stream::AccessMode::READ); in TEST_F()
204 CreateStream(Stream::AccessMode::READ); in TEST_F()
[all …]
Dstream_utils.h55 Stream::Whence whence,
62 inline bool IsReadAccessMode(Stream::AccessMode mode) { in IsReadAccessMode()
63 return mode == Stream::AccessMode::READ || in IsReadAccessMode()
64 mode == Stream::AccessMode::READ_WRITE; in IsReadAccessMode()
68 inline bool IsWriteAccessMode(Stream::AccessMode mode) { in IsWriteAccessMode()
69 return mode == Stream::AccessMode::WRITE || in IsWriteAccessMode()
70 mode == Stream::AccessMode::READ_WRITE; in IsWriteAccessMode()
74 inline Stream::AccessMode MakeAccessMode(bool read, bool write) { in MakeAccessMode()
77 return Stream::AccessMode::READ_WRITE; in MakeAccessMode()
78 return write ? Stream::AccessMode::WRITE : Stream::AccessMode::READ; in MakeAccessMode()
Dfile_stream_unittest.cc44 inline int ReadByte(Stream* stream) { in ReadByte()
50 inline bool WriteByte(Stream* stream, uint8_t byte) { in WriteByte()
55 void TestCreateFile(Stream* stream) { in TestCreateFile()
78 EXPECT_TRUE(stream->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
94 EXPECT_TRUE(stream->Seek(10, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
102 EXPECT_TRUE(stream->Seek(7, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
106 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TestCreateFile()
110 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
113 EXPECT_TRUE(stream->Seek(-1, Stream::Whence::FROM_END, &pos, nullptr)); in TestCreateFile()
134 bool(Stream::AccessMode, const DataCallback&, ErrorPtr*));
[all …]
Dinput_stream_set.cc15 std::vector<Stream*> source_streams, in InputStreamSet()
22 StreamPtr InputStreamSet::Create(std::vector<Stream*> source_streams, in Create()
35 for (Stream* src_stream : source_streams) { in Create()
48 for (const Stream* stream : source_streams) in Create()
57 StreamPtr InputStreamSet::Create(std::vector<Stream*> source_streams, in Create()
64 std::vector<Stream*> source_streams; in Create()
78 for (const Stream* stream : source_streams_) { in CanGetSize()
97 for (const Stream* stream : source_streams_) in GetRemainingSize()
118 Stream* stream = source_streams_.front(); in ReadNonBlocking()
169 Stream* stream = source_streams_.front(); in WaitForData()
[all …]
/external/llvm/test/DebugInfo/PDB/
Dpdbdump-yaml.test40 ; YAML-NEXT: - Stream:
42 ; YAML-NEXT: - Stream:
44 ; YAML-NEXT: - Stream:
47 ; YAML-NEXT: - Stream:
49 ; YAML-NEXT: - Stream:
51 ; YAML-NEXT: - Stream:
52 ; YAML-NEXT: - Stream:
54 ; YAML-NEXT: - Stream:
56 ; YAML-NEXT: - Stream:
58 ; YAML-NEXT: - Stream:
[all …]
/external/llvm/lib/DebugInfo/PDB/Raw/
DNameMap.cpp22 Error NameMap::load(codeview::StreamReader &Stream) { in load() argument
27 if (auto EC = Stream.readInteger(NumberOfBytes)) in load()
31 if (Stream.bytesRemaining() < NumberOfBytes) in load()
36 uint32_t StringsOffset = Stream.getOffset(); in load()
37 Stream.setOffset(StringsOffset + NumberOfBytes); in load()
42 if (auto EC = Stream.readInteger(HashSize)) in load()
50 if (auto EC = Stream.readInteger(MaxNumberOfStrings)) in load()
64 if (auto EC = Stream.readInteger(NumPresentWords)) in load()
76 if (auto EC = Stream.readInteger(Word)) in load()
88 if (auto EC = Stream.readInteger(NumDeletedWords)) in load()
[all …]
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/
DBitcodeWriter.cpp142 unsigned AbbrevToUse, BitstreamWriter &Stream) { in WriteStringRecord() argument
153 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteStringRecord()
158 BitstreamWriter &Stream) { in WriteAttributeTable() argument
162 Stream.EnterSubblock(bitc::PARAMATTR_BLOCK_ID, 3); in WriteAttributeTable()
183 Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record); in WriteAttributeTable()
187 Stream.ExitBlock(); in WriteAttributeTable()
191 static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) { in WriteTypeTable() argument
194 Stream.EnterSubblock(bitc::TYPE_BLOCK_ID_NEW, 4 /*count from # abbrevs */); in WriteTypeTable()
203 unsigned PtrAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
213 unsigned FunctionAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
[all …]
/external/lzma/CPP/7zip/Compress/
DRangeCoder.h23 COutBuffer Stream; variable
24 bool Create(UInt32 bufSize) { return Stream.Create(bufSize); } in Create()
26 void SetStream(ISequentialOutStream *stream) { Stream.SetStream(stream); } in SetStream()
29 Stream.Init(); in Init()
43 HRESULT FlushStream() { return Stream.Flush(); } in FlushStream()
63 Stream.WriteByte((Byte)(temp + (Byte)(Low >> 32))); in ShiftLow()
104 UInt64 GetProcessedSize() { return Stream.GetProcessedSize() + _cacheSize + 4; } in GetProcessedSize()
110 CInBuffer Stream;
113 bool Create(UInt32 bufSize) { return Stream.Create(bufSize); } in Create()
119 Code = (Code << 8) | Stream.ReadByte(); in Normalize()
[all …]
/external/swiftshader/third_party/LLVM/tools/llvm-bcanalyzer/
Dllvm-bcanalyzer.cpp324 static bool ParseBlock(BitstreamCursor &Stream, unsigned IndentLevel) { in ParseBlock() argument
326 uint64_t BlockBitStart = Stream.GetCurrentBitNo(); in ParseBlock()
327 unsigned BlockID = Stream.ReadSubBlockID(); in ParseBlock()
337 if (Stream.ReadBlockInfoBlock()) in ParseBlock()
339 uint64_t BlockBitEnd = Stream.GetCurrentBitNo(); in ParseBlock()
345 if (Stream.EnterSubBlock(BlockID, &NumWords)) in ParseBlock()
351 if ((BlockName = GetBlockName(BlockID, *Stream.getBitStreamReader()))) in ParseBlock()
360 << " BlockCodeSize=" << Stream.GetAbbrevIDWidth() << ">\n"; in ParseBlock()
367 if (Stream.AtEndOfStream()) in ParseBlock()
370 uint64_t RecordStartBit = Stream.GetCurrentBitNo(); in ParseBlock()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DANTLRInputStream.cs35 using Stream = System.IO.Stream; typedef
45 public ANTLRInputStream(Stream input) in ANTLRInputStream()
49 public ANTLRInputStream(Stream input, int size) in ANTLRInputStream()
53 public ANTLRInputStream(Stream input, Encoding encoding) in ANTLRInputStream()
57 public ANTLRInputStream(Stream input, int size, Encoding encoding) in ANTLRInputStream()
61 public ANTLRInputStream(Stream input, int size, int readBufferSize, Encoding encoding) in ANTLRInputStream()
65 private static StreamReader GetStreamReader(Stream input, Encoding encoding) { in GetStreamReader()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DANTLRInputStream.cs36 using Stream = System.IO.Stream; typedef
47 public ANTLRInputStream( Stream input ) in ANTLRInputStream()
52 public ANTLRInputStream( Stream input, int size ) in ANTLRInputStream()
57 public ANTLRInputStream( Stream input, Encoding encoding ) in ANTLRInputStream()
62 public ANTLRInputStream( Stream input, int size, Encoding encoding ) in ANTLRInputStream()
67 public ANTLRInputStream( Stream input, int size, int readBufferSize, Encoding encoding ) in ANTLRInputStream()
72 private static StreamReader GetStreamReader(Stream input, Encoding encoding) in GetStreamReader()

12345678910>>...16