Skip to content

Switch from using uint8_t to std::byte #199

Description

@Shillaker

std::byte is the standard way to represent raw memory, which we currently do with uint8_t.

std::byte avoids the temptation to use any character or arithmetic semantics, and should thus reduce the risk of dodgy memory manipulation that may otherwise be possible.

However, std::byte is not interoperable with uint8_t, so if we make the change bit-by-bit we'll end up with some awkward casting. Instead we should do a wholesale change in a single PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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