Skip to content

No option for "signed or unsigned" #23

@jbendes

Description

@jbendes

Would you be willing to accept a pullreq for adding functionality to allow either a signed or an unsigned number to be "packed"? There are cases where one would want to pack a number and its sign doesn't matter. For example, if you want to pack the bits 0b11 into 2 bits of a byte and you don't care if the number is treated as "3" or as "-1", there is currently no way to use this package to do so (that I can figure out at least)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions