We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23bed31 commit a9e0af4Copy full SHA for a9e0af4
stdlib/public/core/Sequence.swift
@@ -1140,6 +1140,13 @@ extension Sequence {
1140
@inlinable
1141
public __consuming func _copyContents(
1142
initializing buffer: UnsafeMutableBufferPointer<Element>
1143
+ ) -> (Iterator,UnsafeMutableBufferPointer<Element>.Index) {
1144
+ return _copySequenceContents(initializing: buffer)
1145
+ }
1146
+
1147
+ @inlinable
1148
+ internal __consuming func _copySequenceContents(
1149
+ initializing buffer: UnsafeMutableBufferPointer<Element>
1150
) -> (Iterator,UnsafeMutableBufferPointer<Element>.Index) {
1151
var it = self.makeIterator()
1152
guard var ptr = buffer.baseAddress else { return (it,buffer.startIndex) }
0 commit comments