# 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/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/server_buffers.go#L113
- **Page:** https://libtmux.org/reference/go/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.
