# libtmux::Buffer

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L946
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-buffer/

A named piece of text the server holds, outliving the pane it came from.

tmux's cut buffers are the clipboard between panes: a pane's selection lands in one, and pasting reads one back. They belong to the server, not to any pane, which is why they are listed from it.

## Members

- `kNoun` (attribute)
- `kFields` (attribute)
- `Buffer` (method)
- `name` (method): Named by the caller, or by tmux as `buffer0` and upward when it is not.
- `size` (method)
- `sample` (method): The opening of the contents, as tmux prints it in a listing.
- `created` (method)
- `contents` (method): The whole contents.
- `remove` (method)
