Skip to content

Mark DataContainer.subscript as mutating set#202

Merged
colemancda merged 1 commit into
PureSwift:masterfrom
ProtonIntel:data-set
May 15, 2026
Merged

Mark DataContainer.subscript as mutating set#202
colemancda merged 1 commit into
PureSwift:masterfrom
ProtonIntel:data-set

Conversation

@dpogueproton
Copy link
Copy Markdown
Contributor

What does this PR Do?

DataContainer already allows mutating via the append() method, and all implementations of DataContainer (Foundation Data, UInt8 array, and LowEnergyAdvertisingData) support setting via the subscript notation, but it was not allowed on the generic type because this was marked as only allowing get access.

DataContainer already allows mutating via the `append()` method, and all
implementations of DataContainer (Foundation Data, UInt8 array, and
LowEnergyAdvertisingData) support setting via the subscript notation,
but it was not allowed on the generic type because this was marked as
only allowing get access.
@colemancda colemancda merged commit 1325309 into PureSwift:master May 15, 2026
2 checks passed
@colemancda
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants