Skip to content

struct.pack format #1

@DamienCassou

Description

@DamienCassou

Hi,

in the code of this project, one can read:

message_length = struct.unpack("@I", raw_length)[0]

In the MDN's documentation, one can read:

message_length = struct.unpack('=I', raw_length)[0]

Would you mind telling me why you chose to use "@I" for the format instead of "=I"?

The related Python documentation is at: https://docs.python.org/2/library/struct.html

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