Skip to content

Exposing the _raw variants #175

@lu-zero

Description

@lu-zero

I stumbled upon this note:

    // It's tempting to use the [memchr crate] to optimize this. However its
    // API requires a Rust slice, which requires that all `len` bytes of the
    // buffer be accessible, while the C `memchr` API guarantees that it stops
    // accessing memory at the first byte that matches.

probably if memchr_raw is exposed it could be used by libc reimplementations like c-scape.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions