#include "discovery/mdns/public/mdns_reader.h"
#include <algorithm>
#include <string_view>
#include <utility>
#include "discovery/common/config.h"
#include "discovery/mdns/public/mdns_constants.h"
#include "util/osp_logging.h"
#include "util/std_util.h"
namespace openscreen::discovery {
namespace {
bool TryParseDnsType(uint16_t to_parse, DnsType* type) { … }
}
MdnsReader::MdnsReader(const Config& config,
const uint8_t* buffer,
size_t length)
: … { … }
bool MdnsReader::Read(TxtRecordRdata::Entry* out) { … }
bool MdnsReader::Read(DomainName* out) { … }
bool MdnsReader::Read(RawRecordRdata* out) { … }
bool MdnsReader::Read(SrvRecordRdata* out) { … }
bool MdnsReader::Read(ARecordRdata* out) { … }
bool MdnsReader::Read(AAAARecordRdata* out) { … }
bool MdnsReader::Read(PtrRecordRdata* out) { … }
bool MdnsReader::Read(TxtRecordRdata* out) { … }
bool MdnsReader::Read(NsecRecordRdata* out) { … }
bool MdnsReader::Read(MdnsRecord* out) { … }
bool MdnsReader::Read(MdnsQuestion* out) { … }
ErrorOr<MdnsMessage> MdnsReader::Read() { … }
bool MdnsReader::Read(IPAddress::Version version, IPAddress* out) { … }
bool MdnsReader::Read(DnsType type, Rdata* out) { … }
bool MdnsReader::Read(Header* out) { … }
bool MdnsReader::Read(std::vector<DnsType>* out, int remaining_size) { … }
bool MdnsReader::Read(NsecBitMapField* out) { … }
}