folly/folly/MacAddress.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <folly/MacAddress.h>

#include <cassert>
#include <ostream>

#include <folly/Exception.h>
#include <folly/Format.h>
#include <folly/IPAddressV6.h>
#include <folly/String.h>

invalid_argument;
string;

namespace folly {

const MacAddress MacAddress::BROADCAST{};
const MacAddress MacAddress::ZERO;

MacAddress::MacAddress(StringPiece str) {}

MacAddress MacAddress::createMulticast(IPAddressV6 v6addr) {}

string MacAddress::toString() const {}

Expected<Unit, MacAddressFormatError> MacAddress::trySetFromString(
    StringPiece value) {}

void MacAddress::setFromString(StringPiece value) {}

Expected<Unit, MacAddressFormatError> MacAddress::trySetFromBinary(
    ByteRange value) {}

void MacAddress::setFromBinary(ByteRange value) {}

template <typename OnError>
Expected<Unit, MacAddressFormatError> MacAddress::setFromString(
    StringPiece str, OnError err) {}

template <typename OnError>
Expected<Unit, MacAddressFormatError> MacAddress::setFromBinary(
    ByteRange value, OnError err) {}

std::ostream& operator<<(std::ostream& os, MacAddress address) {}

} // namespace folly