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
We could optionally provide additional free functions for dealing with a raw buffer or a pointer to a single value. All of the proposed functions can be layered atop each other, so only one underlying implementation is ultimately needed:
@@ -162,7 +166,11 @@ We could optionally provide additional free functions for dealing with a raw buf
162
166
/// the buffer) must not escape—it will be deallocated when `body` returns and
163
167
/// cannot be used afterward.
164
168
@_transparent
165
-
publicfuncwithUnsafeUninitializedMutableRawBufferPointer<R>(byteCount: Int, alignment: Int, _body: (UnsafeMutableRawBufferPointer) throws-> R) rethrows-> R
Note the functions are marked `@_transparent` to ensure they are emitted into the calling frame. This is consistent with the annotations on most other pointer manipulation functions.
0 commit comments