Skip to content

Different lengths compared to Python's struct.calcsize #13

@mikew

Description

@mikew

For a string like BBBBBBBh, jspack and Python give different sizes:

FMT="BBBBBBBh"
$ node -e "console.log(require('jspack').jspack.CalcLength('$FMT'))"
9
$ python -c "import struct; print(struct.calcsize('$FMT'))"
10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions