wolfram_expr/byte_array.rs
1//! [`ByteArray`][ref/ByteArray]<sub>WL</sub> data type — a byte buffer.
2//!
3//! `ByteArray` is a type alias for [`Vec<u8>`]. Wire-distinct from a `String` in WXF
4//! (BinaryString token `'B'` vs String `'S'`). The variant identity that distinguishes
5//! "this is a `ByteArray` expression" from "this is a `Vec<u8>` to send as a `List`"
6//! lives at the [`ExprKind::ByteArray`][crate::ExprKind::ByteArray] variant level —
7//! a `Vec<u8>` becomes a `ByteArray` expression by going through [`Expr::from`].
8//!
9//! [ref/ByteArray]: https://reference.wolfram.com/language/ref/ByteArray.html
10
11/// Owned byte buffer — Wolfram Language `ByteArray["..."]`.
12pub type ByteArray = Vec<u8>;