// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_CORE_CRYPTO_BORING_UTILS_H_ #define QUICHE_QUIC_CORE_CRYPTO_BORING_UTILS_H_ #include "absl/strings/string_view.h" #include "openssl/bytestring.h" #include "quiche/quic/platform/api/quic_export.h" namespace quic { inline QUICHE_EXPORT absl::string_view CbsToStringPiece(CBS cbs) { … } inline QUICHE_EXPORT CBS StringPieceToCbs(absl::string_view piece) { … } inline QUICHE_EXPORT bool AddStringToCbb(CBB* cbb, absl::string_view piece) { … } } // namespace quic #endif // QUICHE_QUIC_CORE_CRYPTO_BORING_UTILS_H_