to Byte Array
Converts a value of type T to a ByteArray.
This function supports the following types:
If the value is of an unsupported type, an IllegalArgumentException will be thrown.
To read a value from a ByteArray, use the fromByteArray function.
Return
A ByteArray representation of the value.
Author
Fantamomo
Since
1.0
Parameters
value
The value to convert to a ByteArray.
Throws
If the value is of an unsupported type.