Skip to main content

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

Converts a byte string to an integer.

Behavior

The function right-justifies the input byte string to a length of 8 bytes using null bytes before conversion.

Parameters

  • bytestr: The byte string to convert to an integer.

Returns

  • Return value 1: The integer representation of the byte string.