chromium/third_party/openscreen/src/discovery/mdns/public/mdns_writer.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "discovery/mdns/public/mdns_writer.h"

#include <limits>
#include <string>
#include <utility>
#include <vector>

#include "absl/hash/hash.h"
#include "util/hashing.h"
#include "util/osp_logging.h"
#include "util/string_util.h"

namespace openscreen::discovery {

namespace {

std::vector<uint64_t> ComputeDomainNameSubhashes(const DomainName& name) {}

// This helper method writes the number of bytes between |begin| and |end| minus
// the size of the uint16_t into the uint16_t length field at |begin|. The
// method returns true if the number of bytes between |begin| and |end| fits in
// uint16_t type, returns false otherwise.
bool UpdateRecordLength(const uint8_t* end, uint8_t* begin) {}

}  // namespace

bool MdnsWriter::Write(ByteView value) {}

// RFC 1035: https://www.ietf.org/rfc/rfc1035.txt
// See section 4.1.4. Message compression
bool MdnsWriter::Write(const DomainName& name) {}

bool MdnsWriter::Write(const RawRecordRdata& rdata) {}

bool MdnsWriter::Write(const SrvRecordRdata& rdata) {}

bool MdnsWriter::Write(const ARecordRdata& rdata) {}

bool MdnsWriter::Write(const AAAARecordRdata& rdata) {}

bool MdnsWriter::Write(const PtrRecordRdata& rdata) {}

bool MdnsWriter::Write(const TxtRecordRdata& rdata) {}

bool MdnsWriter::Write(const NsecRecordRdata& rdata) {}

bool MdnsWriter::Write(const OptRecordRdata& rdata) {}

bool MdnsWriter::Write(const MdnsRecord& record) {}

bool MdnsWriter::Write(const MdnsQuestion& question) {}

bool MdnsWriter::Write(const MdnsMessage& message) {}

bool MdnsWriter::Write(const IPAddress& address) {}

bool MdnsWriter::Write(const Rdata& rdata) {}

bool MdnsWriter::Write(const Header& header) {}

}  // namespace openscreen::discovery