{
  "classes": [
    {
      "constants": [],
      "types": [],
      "name": "@eryx/encoding/hex",
      "tags": [],
      "functions": [
        {
          "source": {
            "path": "",
            "line": 25
          },
          "is_method": false,
          "signature": "hex.encode(\n    buf: buffer | string  -- The binary data to encode.\n) → (\n    string  -- The hex-encoded string (always lowercase). \n)",
          "owner": "hex",
          "desc": "Encodes a buffer into a lowercase hexadecimal string.\n",
          "tags": [],
          "name": "encode",
          "return_str": "string",
          "function_type": "Function",
          "returns": [
            {
              "lua_type": "string",
              "desc": "The hex-encoded string (always lowercase). "
            }
          ],
          "params": [
            {
              "lua_type": "buffer | string",
              "name": "buf",
              "desc": "The binary data to encode."
            }
          ]
        },
        {
          "source": {
            "path": "",
            "line": 63
          },
          "is_method": false,
          "signature": "hex.decode(\n    str: string  -- The hex-encoded string.\n) → (\n    buffer  -- The decoded binary data. \n)",
          "owner": "hex",
          "desc": "Decodes a hexadecimal string back into a buffer.\n\nAccepts both uppercase (`A–F`) and lowercase (`a–f`) hex digits.\nThe input string length must be even.\n",
          "tags": [],
          "name": "decode",
          "return_str": "buffer",
          "function_type": "Function",
          "returns": [
            {
              "lua_type": "buffer",
              "desc": "The decoded binary data. "
            }
          ],
          "params": [
            {
              "lua_type": "string",
              "name": "str",
              "desc": "The hex-encoded string."
            }
          ]
        }
      ],
      "properties": [],
      "source": {
        "path": "",
        "line": 0
      },
      "desc": "Hexadecimal encoding utilities.\n\nEncodes binary `buffer` data into lowercase hexadecimal strings and\ndecodes hex strings back into buffers. Both uppercase and lowercase\nhex digits are accepted when decoding.\n\n```luau\nlocal hex = require(\"@eryx/encoding/hex\")\nlocal encoded = hex.encode(buffer.fromstring(\"\\xff\\x0a\"))\nprint(encoded) -- \"ff0a\"\n```\n"
    }
  ]
}