convert/ByteArray
convert to a byte array
Calling Sequence
Parameters
Description
Examples
Compatibility
convert(expr, ByteArray)
expr
-
Array,list,set, or string; expression to convert
The convert(x, ByteArray) command takes a string or container object and produces a ByteArray object with content equivalent to the input.
If expr is a string, it can always be converted to a ByteArray.
If expr is an Array, list, or set, it will be converted to a ByteArray if all the contents of expr are integers between -128 and 127. Otherwise, an error will be issued.
convert⁡1,2,3,ByteArray
123
convert⁡Hello, world,ByteArray
721011081081114432119111114108100
The convert/ByteArray command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
convert
convert/bytes
StringTools[ToByteArray]
type/ByteArray
Download Help Document
What kind of issue would you like to report? (Optional)