File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Sources/FoundationEssentials/Data Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,9 @@ extension Data : MutableDataProtocol {
239239 public var regions : CollectionOfOne < Data > {
240240 return CollectionOfOne ( self )
241241 }
242-
242+ }
243+
244+ extension Data {
243245 /// Copy the contents of the data to a pointer.
244246 ///
245247 /// - parameter pointer: A pointer to the buffer you wish to copy the bytes into.
Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ extension Data {
159159 @inlinable // This is @inlinable as reasonably small.
160160 mutating func append( contentsOf buffer: UnsafeRawBufferPointer ) {
161161 ensureUniqueReference ( )
162- let upperbound = storage. length + storage. _offset
163162 storage. replaceBytes (
164163 in: (
165164 location: range. upperBound,
You can’t perform that action at this time.
0 commit comments