Home
last modified time | relevance | path

Searched refs:CanRead (Results 1 – 25 of 45) sorted by relevance

12

/external/cronet/net/ntlm/
Dntlm_buffer_reader.cc20 bool NtlmBufferReader::CanRead(size_t len) const { in CanRead() function in net::ntlm::NtlmBufferReader
53 if (!CanRead(buffer.size())) in ReadBytes()
94 if (!CanRead(kAvPairHeaderLen)) in ReadAvPairHeader()
119 if (!CanRead(target_info_len) || target_info_len < kAvPairHeaderLen) { in ReadTargetInfo()
132 if (!CanRead(pair.avlen)) in ReadTargetInfo()
232 if (!CanRead(count)) in SkipBytes()
240 if (!CanRead(kSignatureLen)) in MatchSignature()
261 if (!CanRead(count)) in MatchZeros()
282 if (!CanRead(int_size)) in ReadUInt()
Dntlm_buffer_reader_unittest.cc19 ASSERT_TRUE(reader.CanRead(1)); in TEST()
20 ASSERT_FALSE(reader.CanRead(2)); in TEST()
39 ASSERT_TRUE(reader.CanRead(0)); in TEST()
40 ASSERT_FALSE(reader.CanRead(1)); in TEST()
55 ASSERT_TRUE(reader2.CanRead(0)); in TEST()
67 ASSERT_TRUE(reader.CanRead(0)); in TEST()
68 ASSERT_FALSE(reader.CanRead(1)); in TEST()
288 ASSERT_TRUE(reader.CanRead(7)); in TEST()
297 ASSERT_TRUE(reader.CanRead(8)); in TEST()
Dntlm_buffer_reader.h61 bool CanRead(size_t len) const;
/external/cronet/net/third_party/quiche/src/quiche/common/
Dquiche_data_reader.cc119 if (!CanRead(size)) { in ReadStringPiece()
254 if (!CanRead(size)) { in ReadBytes()
269 if (!CanRead(size)) { in Seek()
296 bool QuicheDataReader::CanRead(size_t bytes) const { in CanRead() function in quiche::QuicheDataReader
Dquiche_data_reader.h182 bool CanRead(size_t bytes) const;
/external/rust/crates/libz-sys/src/zlib/contrib/dotzlib/DotZLib/
DGZipStream.cs80 public override bool CanRead property in DotZLib.GZipStream
156 if (!CanRead) throw new NotSupportedException(); in Read()
183 if (!CanRead) throw new NotSupportedException(); in ReadByte()
/external/libbrillo/brillo/streams/
Dfile_stream_test.cc66 EXPECT_TRUE(stream->CanRead()); in TestCreateFile()
213 TEST_F(FileStreamTest, CanRead) { in TEST_F() argument
215 EXPECT_TRUE(stream_->CanRead()); in TEST_F()
217 EXPECT_FALSE(stream_->CanRead()); in TEST_F()
219 EXPECT_TRUE(stream_->CanRead()); in TEST_F()
221 EXPECT_FALSE(stream_->CanRead()); in TEST_F()
729 EXPECT_TRUE(stream->CanRead()); in TEST_F()
755 EXPECT_FALSE(stream->CanRead()); in TEST_F()
784 EXPECT_TRUE(stream->CanRead()); in TEST_F()
818 EXPECT_TRUE(stream->CanRead()); in TEST_F()
[all …]
Dfake_stream.cc163 bool FakeStream::CanRead() const { in CanRead() function in brillo::FakeStream
203 if (!CanRead()) in ReadNonBlocking()
365 if ((read_requested && !CanRead()) || (write_requested && !CanWrite())) in WaitForData()
388 if ((read_requested && !CanRead()) || (write_requested && !CanWrite())) in WaitForDataBlocking()
Dtls_stream.h40 bool CanRead() const override { return true; } in CanRead() function
Dmock_stream.h20 MOCK_METHOD(bool, CanRead, (), (const, override));
Dinput_stream_set.h62 bool CanRead() const override { return true; } in CanRead() function
Dfake_stream_test.cc72 EXPECT_TRUE(stream_->CanRead()); in TEST_F()
84 EXPECT_FALSE(stream_->CanRead()); in TEST_F()
96 EXPECT_TRUE(stream_->CanRead()); in TEST_F()
Dfile_stream.h101 bool CanRead() const override;
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs580 Assert.IsTrue(memoryStream.CanRead); in Dispose_DisposesUnderlyingStream()
584 Assert.IsFalse(memoryStream.CanRead); // Disposed in Dispose_DisposesUnderlyingStream()
591 Assert.IsTrue(memoryStream.CanRead); in Dispose_WithLeaveOpen()
595 Assert.IsTrue(memoryStream.CanRead); // We left the stream open in Dispose_WithLeaveOpen()
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs580 Assert.IsTrue(memoryStream.CanRead); in Dispose_DisposesUnderlyingStream()
584 Assert.IsFalse(memoryStream.CanRead); // Disposed in Dispose_DisposesUnderlyingStream()
591 Assert.IsTrue(memoryStream.CanRead); in Dispose_WithLeaveOpen()
595 Assert.IsTrue(memoryStream.CanRead); // We left the stream open in Dispose_WithLeaveOpen()
/external/openthread/src/core/common/
Dframe_data.hpp64 bool CanRead(uint16_t aLength) const { return GetLength() >= aLength; } in CanRead() function in ot::FrameData
Dframe_data.cpp94 VerifyOrExit(CanRead(aLength), error = kErrorParse); in ReadBytes()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/
DLimitedInputStream.cs54 public override bool CanRead property in Google.Protobuf.LimitedInputStream
/external/protobuf/csharp/src/Google.Protobuf/
DLimitedInputStream.cs54 public override bool CanRead property in Google.Protobuf.LimitedInputStream
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/Compatibility/
DTypeExtensions.cs74 …if (ret != null && ((ret.CanRead && ret.GetMethod.IsPublic) || (ret.CanWrite && ret.SetMethod.IsPu… in GetProperty()
/external/protobuf/csharp/src/Google.Protobuf/Compatibility/
DTypeExtensions.cs74 …if (ret != null && ((ret.CanRead && ret.GetMethod.IsPublic) || (ret.CanWrite && ret.SetMethod.IsPu… in GetProperty()
/external/brotli/csharp/
Dinjected_code.txt2 public override bool CanRead {
/external/lzma/CPP/7zip/Archive/Common/
DCoderMixer2.h303 bool CanRead; member
306 CCoderST(): CanRead(false), CanWrite(false) {} in CCoderST()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DOneofDescriptor.cs192 if (!caseProperty.CanRead) in CreateAccessor()
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DOneofDescriptor.cs192 if (!caseProperty.CanRead) in CreateAccessor()

12