{
  "name": "ProtocolAsarJob",
  "component": "gui",
  "header": "nativeui/protocol_file_job.h",
  "type": "Class",
  "namespace": "nu",
  "inherit": {
    "name": "ProtocolJob",
    "id": "protocoljob"
  },
  "description": "Read asar archives to serve custom protocol requests.",
  "detail": "The asar format is a simple extensive archive format, information of it can be\nfound at https://github.com/electron/asar.\n\nAs an experimental feature, Yue supports reading from encrypted asar archives,\nwhich has not been a standard feature of asar yet but will probably be in\nfuture. More about this can be found at https://github.com/yue/muban.\n",
  "class_methods": [
    {
      "signature": {
        "returnType": {
          "name": "ProtocolAsarJob",
          "id": "protocolasarjob"
        },
        "name": "create",
        "parameters": [
          {
            "type": {
              "name": "string"
            },
            "name": "asar"
          },
          {
            "type": {
              "name": "string"
            },
            "name": "path"
          }
        ],
        "shortStr": "create(asar, path)",
        "str": "create(asar, path)"
      },
      "description": "Create a `ProtocolAsarJob` with `path` to a file inside an `asar` archive.\n",
      "id": "create-asar-path"
    }
  ],
  "methods": [
    {
      "signature": {
        "returnType": {
          "name": "boolean"
        },
        "name": "setdecipher",
        "parameters": [
          {
            "type": {
              "name": "string"
            },
            "name": "key"
          },
          {
            "type": {
              "name": "string"
            },
            "name": "iv"
          }
        ],
        "shortStr": "setdecipher(key, iv)",
        "str": "setdecipher(key, iv)"
      },
      "description": "Set the `key` and `iv` used to read from an encrypted asar archive, return\n`false` when the `key` and `iv` are not 16 bytes length.\n",
      "detail": "The encrypted asar archives use AES128 ECB algorithm for encryption, with\nPKCS#7 padding.\n",
      "id": "setdecipher-key-iv"
    }
  ],
  "module": "yue.gui",
  "id": "protocolasarjob"
}