type/ByteArray
check for a byte array
Calling Sequence
Parameters
Description
Examples
Compatibility
type(expr, ByteArray)
expr
-
any expression
The type(expr, ByteArray) function returns true if expr is a ByteArray.
A ByteArray is a one-dimensional Array with data type integer1.
This is the standard way of representing an arbitrary chunk of binary data
A≔StringTools:-ToByteArray⁡Lorem ipsum dolor sit amet
A≔761111141011093210511211511710932100111108111114321151051163297109101116
type⁡A,ByteArray
true
B≔convert⁡2,3,5,7,11,13,ByteArray
B≔23571113
type⁡B,ByteArray
The type/ByteArray command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Array
Formats/ByType/ByteArray
rtable
rtable_options
type
type/rtable
Download Help Document