Home
last modified time | relevance | path

Searched refs:RawRecordRdata (Results 1 – 9 of 9) sorted by relevance

/external/openscreen/discovery/mdns/
Dmdns_records.cc91 return IsGreaterThan<RawRecordRdata>(lhs, rhs); in IsGreaterThan()
178 ErrorOr<RawRecordRdata> RawRecordRdata::TryCreate(std::vector<uint8_t> rdata) { in TryCreate()
182 return RawRecordRdata(std::move(rdata)); in TryCreate()
186 RawRecordRdata::RawRecordRdata() = default;
188 RawRecordRdata::RawRecordRdata(std::vector<uint8_t> rdata) in RawRecordRdata() function in openscreen::discovery::RawRecordRdata
194 RawRecordRdata::RawRecordRdata(const uint8_t* begin, size_t size) in RawRecordRdata() function in openscreen::discovery::RawRecordRdata
195 : RawRecordRdata(std::vector<uint8_t>(begin, begin + size)) {} in RawRecordRdata()
197 RawRecordRdata::RawRecordRdata(const RawRecordRdata& other) = default;
199 RawRecordRdata::RawRecordRdata(RawRecordRdata&& other) noexcept = default;
201 RawRecordRdata& RawRecordRdata::operator=(const RawRecordRdata& rhs) = default;
[all …]
Dmdns_records.h108 class RawRecordRdata {
110 static ErrorOr<RawRecordRdata> TryCreate(std::vector<uint8_t> rdata);
112 RawRecordRdata();
113 explicit RawRecordRdata(std::vector<uint8_t> rdata);
114 RawRecordRdata(const uint8_t* begin, size_t size);
115 RawRecordRdata(const RawRecordRdata& other);
116 RawRecordRdata(RawRecordRdata&& other) noexcept;
118 RawRecordRdata& operator=(const RawRecordRdata& rhs);
119 RawRecordRdata& operator=(RawRecordRdata&& rhs);
120 bool operator==(const RawRecordRdata& rhs) const;
[all …]
Dmdns_reader_unittest.cc155 RawRecordRdata(kRawRecordRdata + 2, sizeof(kRawRecordRdata) - 2)); in TEST()
169 RawRecordRdata entry; in TEST()
183 RawRecordRdata()); in TEST()
193 TestReadEntryFails<RawRecordRdata>(kRawRecordRdata, sizeof(kRawRecordRdata)); in TEST()
510 RawRecordRdata(kCnameRdata, sizeof(kCnameRdata)))); in TEST()
Dmdns_reader.cc128 bool MdnsReader::Read(RawRecordRdata* out) { in Read()
139 ErrorOr<RawRecordRdata> rdata = in Read()
140 RawRecordRdata::TryCreate(std::move(buffer)); in Read()
390 return Read<RawRecordRdata>(out); in Read()
Dmdns_records_unittest.cc125 RawRecordRdata rdata1; in TEST()
129 RawRecordRdata rdata2(kRawRdata, sizeof(kRawRdata)); in TEST()
136 RawRecordRdata rdata3( in TEST()
153 RawRecordRdata rdata1(kRawRdata1, sizeof(kRawRdata1)); in TEST()
154 RawRecordRdata rdata2(kRawRdata1, sizeof(kRawRdata1)); in TEST()
155 RawRecordRdata rdata3(kRawRdata2, sizeof(kRawRdata2)); in TEST()
167 TestCopyAndMove(RawRecordRdata(kRawRdata, sizeof(kRawRdata))); in TEST()
524 EXPECT_EQ(record1.rdata(), Rdata(RawRecordRdata())); in TEST()
Dmdns_writer.h30 bool Write(const RawRecordRdata& rdata);
Dmdns_reader.h32 bool Read(RawRecordRdata* out);
Dmdns_writer_unittest.cc186 RawRecordRdata(kExpectedRdata + 2, sizeof(kExpectedRdata) - 2), in TEST()
197 RawRecordRdata(kRawRdata, sizeof(kRawRdata))); in TEST()
Dmdns_writer.cc120 bool MdnsWriter::Write(const RawRecordRdata& rdata) { in Write()