Wondering if Swift’s cornucopia of UnsafeRawMutablePointer etc. classes couldn’t be simplified with some sort of struct description where you can just associate a length field in a struct or mark it as zero-terminated. Define an extension on it with that info.

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!