IntegerToByteStringCostingFun
scalus.uplc.eval.IntegerToByteStringCostingFun
case class IntegerToByteStringCostingFun(cpu: ThreeArguments, memory: ThreeArguments) extends CostingFun
When invoking integerToByteString
built-in function, its second argument is a built-in Integer but with a different size measure, specifying the width (in bytes) of the output bytestring (zero-padded to the desired size). The memory consumed by the function is given by w
, not the size of w
. Its MemoryUsage
is equal to the number of eight-byte words required to contain w
bytes, allowing its costing function to work properly.
Attributes
- See also
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CostingFunclass Objecttrait Matchableclass Any
Members list
In this article