"ByteArray" (Compiled Type)
"ByteArray"
represents a one-dimensional array of bytes.
Details
- "ByteArray" can be used in Typed and related constructs to specify a type.
Constructors
- ByteArray["string"] constructs a "ByteArray" object by extracting byte values from a Base64-encoded string.
- ByteArray[na] constructs a copy of the array na, where na has the type "NumericArray"::["UnsignedInteger8", 1].
- CreateTypeInstance["ByteArray",len] constructs a byte array of length len.
- CreateTypeInstance["ByteArray",byte,len] constructs a byte array of length len filled with byte values.
Conversions
- "ByteArray" objects can be converted to and from ByteArray expressions.
- "ByteArray" objects can be converted to and from "NumericArray"::["UnsignedInteger8",1] objects.
Expressions
"NumericArray"
Examples
open allclose allBasic Examples (2)
"ByteArray" can be used as input or output for a CompiledCodeFunction:
Scope (8)
Construction (4)
Conversion (4)
Convert a "ByteArray" to a "NumericArray":
Convert a "ByteArray" from a "NumericArray":
Convert a "ByteArray" to an "InertExpression":
Convert a "ByteArray" from an "InertExpression":