Skip to content

Re-enable encodeBytes(_:[UInt8]) implementation#1821

Merged
kperryua merged 1 commit intoswiftlang:experimental/new-codablefrom
kperryua:encode-bytes-compiler-crash-workaround
Mar 16, 2026
Merged

Re-enable encodeBytes(_:[UInt8]) implementation#1821
kperryua merged 1 commit intoswiftlang:experimental/new-codablefrom
kperryua:encode-bytes-compiler-crash-workaround

Conversation

@kperryua
Copy link
Copy Markdown
Contributor

For some reason bytes.withUnsafeBytes caused a compiler crash. (Compiler bug for that forthcoming)
Instead, call the RawSpan overload, which is a better idea anyway.

@kperryua kperryua added the new-codable Related to new Swift (de)serialization APIs label Mar 16, 2026
@kperryua kperryua merged commit bf95496 into swiftlang:experimental/new-codable Mar 16, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-codable Related to new Swift (de)serialization APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant