ByteUtils

object ByteUtils

Bytes utility object

class Object
trait Matchable
class Any

Value members

Concrete methods

def join(parts: Array[Byte]*): Array[Byte]

concat byte arrays

concat byte arrays

def serializeArbitraryWidthNumber(value: BigInt, maxBytes: Int): Array[Byte]

Serialize U128,U256 and U512 casper types

Serialize U128,U256 and U512 casper types

Returns

Array[Byte]

def serializeFixedWidthNumber(value: BigInt, maxBytes: Int): Array[Byte]

Serialize U32,I32,I62 and U64 casper types

Serialize U32,I32,I62 and U64 casper types

Returns

Array[Byte]