Skip to content

Commit 33856f9

Browse files
committed
fix use of non-public initializers
1 parent d2d0684 commit 33856f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/FoundationEssentials/Data/Data.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,7 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22092209
let buffer: UnsafeRawBufferPointer
22102210
switch _representation {
22112211
case .empty:
2212-
buffer = UnsafeRawBufferPointer(_empty: ())
2212+
buffer = UnsafeRawBufferPointer(start: nil, count: 0)
22132213
case .inline:
22142214
buffer = unsafe UnsafeRawBufferPointer(
22152215
start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
@@ -2245,7 +2245,7 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22452245
let buffer: UnsafeMutableRawBufferPointer
22462246
switch _representation {
22472247
case .empty:
2248-
buffer = UnsafeMutableRawBufferPointer(_empty: ())
2248+
buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
22492249
case .inline:
22502250
buffer = unsafe UnsafeMutableRawBufferPointer(
22512251
start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
@@ -2277,7 +2277,7 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect
22772277
let buffer: UnsafeMutableRawBufferPointer
22782278
switch _representation {
22792279
case .empty:
2280-
buffer = UnsafeMutableRawBufferPointer(_empty: ())
2280+
buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
22812281
case .inline:
22822282
buffer = unsafe UnsafeMutableRawBufferPointer(
22832283
start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),

0 commit comments

Comments
 (0)