# io.github.libtmux.batch.Batch.Batch.length

- **Module:** io.github.libtmux.batch.Batch.Batch
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/batch/Batch.java#L65
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-batch-batch-batch-length/

```
io.github.libtmux.batch.Batch.Batch.length() -> int
```

How many bytes the collected operations come to as the one command tmux parses.

<p>tmux packs a command into MAX_IMSGSIZE, 16384 bytes, and refuses a longer one with
{@code command too long}; measured, it takes about 16300 of them. A batch taken from a handle
travels as this one string plus the guard that fences it, so it costs this and a little more.
One dispatched as separate arguments costs less, since nothing there is quoted.
