# server.Server.loadBuffer

- **Module:** server.Server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L833
- **Page:** https://libtmux.org/reference/ts/server-server-loadbuffer/

```
server.Server.loadBuffer(name: : string, data: : string | Uint8Array) -> Promise<void>
```

Fill a paste buffer from data fed through tmux's stdin.

Use this over {@link Server.setBuffer} for anything large or binary: that
one passes its data as a command-line argument, and this one does not.

## Example

```ts
await server.loadBuffer("payload", new Uint8Array([0x68, 0x69]));
```
