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-8521] Data should have increaseLengthBy or increaseCountBy method #3649

Open
zoecarver opened this issue Aug 11, 2018 · 1 comment
Open

Comments

@zoecarver
Copy link
Contributor

Previous ID SR-8521
Radar None
Original Reporter @zoecarver
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Improvement
Assignee None
Priority Medium

md5: 2fdfec9278da65aae35739000fd46c24

Issue Description:

If Data is replacing NSMutableData maybe it should have the increaseLengthBy method or something similar.

Link to NSMutableData increaseLengthBy method.

@martinr448
Copy link

Unless I am mistaken, you would achieve the same with

data.count += additionalLength

@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
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