# libtmux::Buffer

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L771
- **Page:** https://libtmux.org/reference/cxx/libtmux-buffer/

## 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)
