# server.Server.showBufferBytes

- **Module:** server
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/server.ts#L1453
- **Page:** https://libtmux.org/en/ts/latest/reference/server-server-showbufferbytes/

```
showBufferBytes(name: string): Promise<Uint8Array>
```

Read a named paste buffer without decoding or splitting its bytes.

Unlike [`Server.showBuffer`](/en/ts/latest/reference/server-server-showbuffer/), this preserves NUL, invalid UTF-8, line
endings, and trailing newlines.

## Examples

```ts
const bytes = await server.showBufferBytes("payload");
bytes[0]; // 104
```

## Parameters

- `name` (`string`)

## tmux command

The tmux commands behind `showBufferBytes`.

- [`show-buffer`](/en/tmux/latest/manual/show-buffer/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_show_buffer_entry`](/en/tmux/latest/reference/c-variable-cmd_show_buffer_entry/) (attribute)
- [`cmd_save_buffer_exec`](/en/tmux/latest/reference/c-function-cmd-save-buffer-c-cmd_save_buffer_exec/) (function)
