function · Browser and Node

# decodePacket

`@toip-tools/mesh-transport` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/packet.ts#L54)

Import:

```ts
import { decodePacket } from "@toip-tools/mesh-transport";
```

## Declaration

Signature:

```ts
decodePacket(b: Uint8Array): Packet | null;
```

### Parameters

- **`b` (required)**: `Uint8Array<ArrayBufferLike>`

### Returns

`Packet | null`

[Usage guide](https://toip.tools/toolkit/mesh-transport/#usage) · [Error handling](https://toip.tools/toolkit/mesh-transport/#errors) · [All exports](https://toip.tools/toolkit/mesh-transport/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mesh-transport/api/decodePacket/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
