Skip to content

endianess of resulting array of bytes #21

@alepinio

Description

@alepinio

With the 8.11.1 I'm getting

>>> bitstruct.pack('u8u8u8u8<', 1, 2, 3, 4)
b'\x01\x02\x03\x04'
>>> bitstruct.pack('u8u8u8u8>', 1, 2, 3, 4)
b'\x01\x02\x03\x04'

Is this OK? According to the documentation, I was expecting different byte orderings when using suffixes < and >.

THX, Alejandro

PS: great work!

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