Skip to content

swift6 warnings about passing raw mutable buffers? #10

Open
@heckj

Description

@heckj

Hi josef,

I was digging into your package, kicked open the file in the latest beta Xcode and noticed (compiler warnings) that there were a couple of places where you're passing UnsafeMutableRawBufferPointer across an isolation boundary. It definitely seems like an unsafe practice, so I wanted to check to see if there was a better way to arrange what's happening here.

The relevant code is in FileHandle+Async.swift, around lines 197-208 in the main branch. Screenshot from my Xcode:

Screenshot 2024-12-02 at 4 19 05 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions