tuweni / org.apache.tuweni.bytes / Bytes / of

of

open static fun of(vararg bytes: Byte): Bytes! (source)

Create a value that contains the specified bytes in their specified order.

Parameters

bytes - Byte: The bytes that must compose the returned value.

Return
Bytes!: A value containing the specified bytes.

open static fun of(vararg bytes: Int): Bytes! (source)

Create a value that contains the specified bytes in their specified order.

Parameters

bytes - Int: The bytes.

Exceptions

IllegalArgumentException - if any of the specified would be truncated when storing as a byte.

Return
Bytes!: A value containing bytes are the one from bytes.