# encodeStringTable

> **encodeStringTable**(`strings`): `Uint8Array`

Defined in: [packages/wire/src/string-table.ts:16](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/wire/src/string-table.ts#L16)

Encode strings as flags, byte offsets, and one contiguous UTF-8 blob.

## Parameters

### strings

readonly `string`\[]

## Returns

`Uint8Array`

## Throws

With `INVALID_STRING` when a string contains an unpaired surrogate, or `INVALID_ARGUMENT` when the encoded table exceeds a representable limit.
