bytes_to_int

pylluminator.read_idat.bytes_to_int(input_bytes, signed=False) int

Returns the integer represented by the given array of bytes. Pre-sets the byteorder to be little-endian.

Parameters:
  • input_bytes – Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

  • signed (bool) – Indicates whether two’s complement is used to represent the integer - Default False

Returns:

Integer value converted from the supplied bytes.

Return type:

int