convert/ByteArray - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Conversion : convert/ByteArray

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(expr, '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

1 .. 12 ArrayData Type: integer[1]Storage: rectangularOrder: C_order

(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

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam