ByteArray - Maple Help

Online Help

All Products    Maple    MapleSim


convert/ByteArray

convert to a byte array

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

convert(expr, ByteArray)

Parameters

expr

-

Array,list,set, or string; expression to convert

Description

• 

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.

Examples

convert1,2,3,ByteArray

123

(1)

convertHello, world,ByteArray

721011081081114432119111114108100

(2)

Compatibility

• 

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