open static fun of(vararg bytes: Byte): Bytes
(source)
Create a value that contains the specified bytes in their specified order.
bytes
- The bytes that must compose the returned value.
Return
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.
IllegalArgumentException
- if any of the specified would be truncated when storing as a byte.
Return
A value containing bytes are the one from bytes
.