# tmux.Server.ShowBufferBytes

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/server_buffers.go#L130
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-server-showbufferbytes/

```
tmux.Server.ShowBufferBytes(ctx: context.Context, name: *string) -> ([]byte, error)
```

ShowBufferBytes returns one buffer as exact caller-owned tmux stdout bytes. Unlike [Server.ShowBuffer], it preserves invalid UTF-8, delimiters, and trailing newlines. Nil Name selects tmux's most recent buffer. Completed stderr returns a redacted command error and a nil byte slice.
