submitBytes
Copies exactly length bytes starting at offset into the ordered writer. The caller must keep the range stable until return and may then reuse it. Bytes are neither decoded nor sanitized, encoded, or framed as paste. Use submitInput for keyboard, mouse, IME, or paste semantics.
Concurrent producers are serialized at admission with keys, bulk input, startup commands and parser replies. Empty ranges succeed only while running and do not cancel startup. The byte queue is bounded to 8 MiB; exceeding its remaining capacity fails the session without admitting any of this range. Admission is not write completion: close discards pending work and may interrupt an active write. Resize is synchronous and has no position in this byte queue; it is not a flush or write barrier.
Throws
for invalid slices, even before start or after close. Validation is overflow-safe and does not change the session.