Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-7755] Better documentation for Data.withUnsafe(Mutable)Bytes #3693

Closed
hamishknight opened this issue May 23, 2018 · 2 comments
Closed

[SR-7755] Better documentation for Data.withUnsafe(Mutable)Bytes #3693

hamishknight opened this issue May 23, 2018 · 2 comments

Comments

@hamishknight
Copy link

Previous ID SR-7755
Radar None
Original Reporter @hamishknight
Type Improvement
Status Closed
Resolution Won't Do
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Improvement
Assignee None
Priority Medium

md5: c9406466d9ad86717ec6d0906534aff7

Issue Description:

The documentation for both methods should ideally include information about:

  • The body: parameter

  • The return value

  • The preconditions that are needed for the type T of the Unsafe(Mutable)Pointer<T> parameter of the passed closure in order for the behaviour to be well defined

@glessard
Copy link
Contributor

glessard commented Jun 3, 2021

These functions have since been deprecated. Is that a sufficient resolution?

@hamishknight
Copy link
Author

Yup 🙂

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants