Skip to content

Operation request: pack integer, unpack integer #2138

@t1m013y

Description

@t1m013y

Summary

Pack integer

Packs integer values into their binary representation

Unpack integer

Unpacks integer values from their binary representation

Options

Size in bits (default values: 8, 16, 32, 64 and custom) – Size of the integer value in bits
Signed (for unpack only) – Decode as signed or as unsigned
Separator – For pack: separator of input numbers, for unpack – separator of output numbers
Format (Raw/Hex) – Input/output binary data format (raw bytes or hex)
Endian (Big/Little) – The endianness of input/output binary data

Example Input

Options for these examples:
Size in bits: 32
Signed: false
Endian: big

Pack integer

19022842, 1234567

Unpack integer

If hex format is selected:

01 22 43 fa 00 12 d6 87

Or same in raw bytes (if raw format is selected)

Example Output

Pack integer

If hex format is selected:

01 22 43 fa 00 12 d6 87

Or same in raw bytes (if raw format is selected)

Unpack integer

If comma separator is selected:

19022842, 1234567

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions