From 4ea872cede5ee8a971123f23a8a7aa5af06c627f Mon Sep 17 00:00:00 2001 From: Jeremy Schonfeld Date: Wed, 8 Oct 2025 14:07:32 -0700 Subject: [PATCH] Add LargeData internal initializer entrypoint --- Sources/FoundationEssentials/Data/Data.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/FoundationEssentials/Data/Data.swift b/Sources/FoundationEssentials/Data/Data.swift index acec7242d..462d03b3c 100644 --- a/Sources/FoundationEssentials/Data/Data.swift +++ b/Sources/FoundationEssentials/Data/Data.swift @@ -1165,6 +1165,12 @@ public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollect self.storage = storage self.slice = RangeReference(0..) { + self.storage = storage + self.slice = RangeReference(range) + } @inlinable // This is @inlinable as trivially computable (and inlining may help avoid retain-release traffic). mutating func ensureUniqueReference() {