string.string.from_hex
Declaration
lua
string.from_hex(hex)
Description
Convert hex string to binary data.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
hex | string | Required | — | Hex string |
Return Values
| Type | Description |
|---|---|
| string | Binary data |
| nil | On invalid hex |