Home
last modified time | relevance | path

Searched refs:rdata_ (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/p2p/base/
Dmdns_message.cc245 return buf->ReadString(&rdata_, 4); in ReadARData()
250 return buf->ReadString(&rdata_, 16); in ReadQuadARData()
275 buf->WriteString(rdata_); in WriteARData()
279 buf->WriteString(rdata_); in WriteQuadARData()
293 rdata_ = std::string(out, rdlength_); in SetIPAddressInRecordData()
303 if (rdata_.size() != 4 && rdata_.size() != 16) { in GetIPAddressFromRecordData()
308 if (!rtc::inet_ntop(af, rdata_.data(), out, sizeof(out))) { in GetIPAddressFromRecordData()
Dmdns_message.h144 std::string rdata_; variable
/external/openscreen/discovery/mdns/
Dmdns_records.cc189 : rdata_(std::move(rdata)) { in RawRecordRdata()
191 OSP_DCHECK(rdata_.size() <= kMaxRawRecordSize); in RawRecordRdata()
206 return rdata_ == rhs.rdata_; in operator ==()
215 return sizeof(uint16_t) + rdata_.size(); in MaxWireSize()
568 rdata_(std::move(rdata)) { in MdnsRecord()
569 OSP_DCHECK(IsValidConfig(name_, dns_type, ttl_, rdata_)); in MdnsRecord()
658 rdata_ == rhs.rdata_; in IsReannouncementOf()
664 return name_.MaxWireSize() + absl::visit(wire_size_visitor, rdata_) + 8; in MaxWireSize()
673 const DomainName& target = absl::get<PtrRecordRdata>(rdata_).ptr_domain(); in ToString()
676 const DomainName& target = absl::get<SrvRecordRdata>(rdata_).target(); in ToString()
[all …]
Dmdns_records.h124 uint16_t size() const { return rdata_.size(); } in size()
125 const uint8_t* data() const { return rdata_.data(); } in data()
129 return H::combine(std::move(h), rdata.rdata_); in AbslHashValue()
133 std::vector<uint8_t> rdata_;
487 const Rdata& rdata() const { return rdata_; } in rdata()
493 record.ttl_.count(), record.rdata_); in AbslHashValue()
511 Rdata rdata_; variable