Skip to content

Raw buffer access for paths #7201

Closed
Closed
@emberian

Description

@emberian

In #7131 it becomes useful to have access to a raw buffer which is the platform's representation of the path for passing to system APIs. I propose a with_platform_buffer() method which returns the appropriate raw buffer. On Windows this would be UTF-16, elsewhere it'd just be bytes.

This could avoid doing allocations in lowlevel APIs which directly pass paths to the system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UnicodeArea: UnicodeC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions