from Byte Array
Converts a ByteArray to a value of type T.
This function supports the following types:
If the value is of an unsupported type, an IllegalArgumentException will be thrown.
To write a value to a ByteArray, use the toByteArray function.
Return
A value of type T represented by the ByteArray.
Author
Fantamomo
Since
1.0-SNAPSHOT
Parameters
value
The ByteArray to convert to a value of type T.
Throws
If the value is of an unsupported type.
Converts a ByteArray to a value of type T.
This function is a convenience function that infers the type T from the reified type parameter.
Return
A value of type T represented by the ByteArray.
Author
Fantamomo
Since
1.0-SNAPSHOT
Parameters
value
The ByteArray to convert to a value of type T.
Throws
If the value is of an unsupported type.