# server.Server.loadBuffer

- **Module:** server.Server
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/server.ts#L882
- **Page:** https://libtmux.org/en/ts/latest/reference/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]));
```
