Skip to content

Exploding Nat64 and other fixed-width multibyte types #5038

@ggreif

Description

@ggreif

Proposed primitive:

func nat64BigEndian(n : Nat64) : (msb : Nat8, Nat8, Nat8, Nat8, Nat8, Nat8, Nat8, lsb : Nat8)

The BigEndian part is necessitated by the representation of Nat8 in the backend. This order is waaaaay more efficient to generate than the reverse.

FYI: @timohanke

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions