tuweni / org.apache.tuweni.bytes / Bytes / toLong

toLong

open fun toLong(): Long (source)

The value corresponding to interpreting these bytes as a long.

Exceptions

IllegalArgumentException - if size() > 8.

Return
Long: An value corresponding to this value interpreted as a long.

open fun toLong(order: ByteOrder!): Long (source)

The value corresponding to interpreting these bytes as a long.

Parameters

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

Exceptions

IllegalArgumentException - if size() > 8.

Return
Long: An value corresponding to this value interpreted as a long.