diff --git a/Sources/SwiftProtobufFoundationCompat/SwiftProtobufContiguousBytes.swift b/Sources/SwiftProtobufCore/SwiftProtobufContiguousBytes.swift similarity index 89% rename from Sources/SwiftProtobufFoundationCompat/SwiftProtobufContiguousBytes.swift rename to Sources/SwiftProtobufCore/SwiftProtobufContiguousBytes.swift index 026edd31e..f180bb4ec 100644 --- a/Sources/SwiftProtobufFoundationCompat/SwiftProtobufContiguousBytes.swift +++ b/Sources/SwiftProtobufCore/SwiftProtobufContiguousBytes.swift @@ -1,4 +1,4 @@ -// Sources/SwiftProtobuf/SwiftProtobufContiguousBytes.swift +// Sources/SwiftProtobufCore/SwiftProtobufContiguousBytes.swift // // Copyright (c) 2022 Apple Inc. and the project authors // Licensed under Apache License v2.0 with Runtime Library Exception diff --git a/Sources/SwiftProtobufFoundationCompat/Data+SwiftProtobufContiguousBytes.swift b/Sources/SwiftProtobufFoundationCompat/Data+SwiftProtobufContiguousBytes.swift new file mode 100644 index 000000000..14afd8152 --- /dev/null +++ b/Sources/SwiftProtobufFoundationCompat/Data+SwiftProtobufContiguousBytes.swift @@ -0,0 +1,16 @@ +// Sources/SwiftProtobufFoundationCompat/Data+SwiftProtobufContiguousBytes.swift +// +// Copyright (c) 2022 Apple Inc. and the project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See LICENSE.txt for license information: +// https://github.com/apple/swift-protobuf/blob/main/LICENSE.txt +// +// ----------------------------------------------------------------------------- + +import Foundation +import SwiftProtobufCore + +/// Extension conforming `Data` to the new `SwiftProtobufContiguousBytes` protocol. +extension Data: SwiftProtobufContiguousBytes { +}