Skip to content

(Un)packing code makes assumptions about struct sizes #1259

@sagudev

Description

@sagudev

(Un)packing code feels unsafe, as there are some assumptions of types that can change. We should at least have some const asserts here for size assumptions (by looking using https://doc.rust-lang.org/std/primitive.u32.html#method.leading_zeros on max of types).

Originally posted by @sagudev in #1173 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-classicApplies to the classic `vello` crate

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions