bytes_to_int
Python API reference for the function encoding.bytes_to_int.
Public API
Function: bytes_to_int
Canonical path: encoding.bytes_to_int
Declared in: encoding.py
Signature
def bytes_to_int(bytestr): ...
Summary
Convert a byte string to an integer.
Behavior
The function pads the input byte string to a length of 8 with null bytes on the left before converting it to an integer.
Parameters
- bytestr: The byte string to be converted.
Returns
- Return value 1: The integer representation of the byte string.