MemoryUsage

scalus.uplc.eval.MemoryUsage
See theMemoryUsage companion trait
object MemoryUsage

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def integerLog2(i: BigInt): Long

Memory usage as literal value (for IntegerCostedLiterally).

Memory usage as literal value (for IntegerCostedLiterally).

Returns the absolute value of i, saturating to Long.MaxValue for values that don't fit. This matches Plutus behavior where fromIntegral narrows to maxBound::SatInt.

Attributes