tuweni / org.apache.tuweni.bytes / Bytes / toInt

toInt

open fun toInt(): Int (source)

The value corresponding to interpreting these bytes as an integer.

Exceptions

IllegalArgumentException - if size() > 4.

Return
Int: An value corresponding to this value interpreted as an integer.

open fun toInt(order: ByteOrder!): Int (source)

The value corresponding to interpreting these bytes as an integer.

Parameters

order - ByteOrder!: The byte-order for decoding the integer.

Exceptions

IllegalArgumentException - if size() > 4.

Return
Int: An value corresponding to this value interpreted as an integer.