tuweni / org.apache.tuweni.bytes / MutableBytes / increment

increment

open fun increment(): MutableBytes! (source)

Increments the value of the bytes by 1, treating the value as big endian. If incrementing overflows the value then all bits flip, i.e. incrementing 0xFFFF will return 0x0000.

Return
MutableBytes!: this value