Payload accepted by SerialSession.send$.
Strings are UTF-8 encoded via a shared TextEncoder when send$ is subscribed. Uint8Array values are copied at that same moment and written unchanged. Later mutation of the caller's buffer does not affect a queued write.
TextEncoder
send$
Uint8Array
Payload accepted by SerialSession.send$.
Strings are UTF-8 encoded via a shared
TextEncoderwhensend$is subscribed.Uint8Arrayvalues are copied at that same moment and written unchanged. Later mutation of the caller's buffer does not affect a queued write.