[SR-4340] UnsafeBufferPointer needs a withMemoryRebound method #46919
Labels
feature
A feature request or implementation
improvement
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 97500090b48ef769f616d5192ac5f06c
Issue Description:
Currently, rebinding memory requires manually dropping down to `baseAddress` + `count`:
We should obviously add a `withMemoryRebound(capacity🙂` to UnsafeBufferPointer and UnsafeMutableBufferPointer.
While we're at it, UnsafeRawBufferPointer should have a bindMemory API.
The text was updated successfully, but these errors were encountered: