Skip to content
Discussion options

You must be logged in to vote

That should work:
int.from_bytes(b'\x00\x33\xEB\x0A', 'little')
or that:
import ustruct; ustruct.unpack("<I", b'\x00\x33\xEB\x0A')

To get b'\x00\x33\xEB\x0A' from b'0033EB0A', you can use binascii.unhexlify(), like
int.from_bytes(binascii.unhexlify(b'0033EB0A'), "little")

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
5 replies
@kjm1102
Comment options

@glenn20
Comment options

@kjm1102
Comment options

@jimmo
Comment options

@ricksorensen
Comment options

Answer selected by kjm1102
Comment options

You must be logged in to vote
0 replies
Comment options

Josverl
Oct 23, 2023
Collaborator Sponsor

You must be logged in to vote
1 reply
@kjm1102
Comment options

Comment options

You must be logged in to vote
2 replies
@kjm1102
Comment options

@jimmo
Comment options

Comment options

You must be logged in to vote
1 reply
@jimmo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants