Skip to content

Commit

Permalink
Add SwiftProtobufContiguousBytes protocol placeholder
Browse files Browse the repository at this point in the history
- Move SwiftProtobufContiguousBytes to SwiftProtobufCore (it was mistakenly added to SwiftProtobufFoundationCompat earlier)
- Added a placeholder for extending Data with SwiftProtobufContiguousBytes conformance in SwiftProtobufFoundationCompat
  • Loading branch information
gjcairo committed Nov 1, 2022
1 parent 51ca597 commit 5c10715
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
}

0 comments on commit 5c10715

Please sign in to comment.