swift
25d935f5 - stdlib: Add withUnsafeBytes(of:) and withUnsafePointer(to:) for immutable arguments.

Commit
7 years ago
stdlib: Add withUnsafeBytes(of:) and withUnsafePointer(to:) for immutable arguments. Since the functions produce pointers with tightly-scoped lifetimes there's no formal reason these have to only work on `inout` things. Now that arguments can be +0, we can even do this without copying values that we already have at +0.
Author
Committer
Parents
Loading