You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UMRBP.initializeMemory<T,S>(as type: T.Type, from source: S) takes a Sequence and and initializes an UMRBP element-by-element (see here). Note that the closest equivalent function on UnsafeMutableRawPointer is the most likely way to add a fast-path for this, by using withContiguousStorageIfAvailable on source.
Adding a fast path may require adding an overload.
The text was updated successfully, but these errors were encountered:
This has been resolved in a different way in SE-0370, by implementing a separate method to initialize from a collection: UnsafeMutableRawBufferPointer.initialize(as:fromContentsOf:).
Additional Detail from JIRA
md5: 604b61efa14e93fd1f56dd2bcf00a48f
Issue Description:
UMRBP.initializeMemory<T,S>(as type: T.Type, from source: S)
takes a Sequence and and initializes an UMRBP element-by-element (see here). Note that the closest equivalent function onUnsafeMutableRawPointer
is the most likely way to add a fast-path for this, by usingwithContiguousStorageIfAvailable
onsource
.Adding a fast path may require adding an overload.
The text was updated successfully, but these errors were encountered: