Skip to content

[Swift] Add allowReadingUnalignedBuffers to all ByteBuffer init methods #8133

@abandy

Description

@abandy

There was a recent updated that added allowReadingUnalignedBuffers to a subset of ByteBuffer init methods.

The init methods that were modified required the data to be UnsafeMutableRawPointer (AFAIK). Since unaligned is associated with reading and not writing it seems that all the other methods should not prevent a user from setting this parameter.

I would like to add allowReadingUnalignedBuffers to all ByteBuffer init methods that accept the data as an input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions