{
  "kind": "Synthetic native decoder API illustration",
  "runtimes": {
    "node": "v24.22.2",
    "python": "3.12.3"
  },
  "rows": [
    {
      "id": "empty",
      "input": "",
      "nodeHex": "",
      "pythonHex": "",
      "pythonError": null,
      "fullInputHex": true
    },
    {
      "id": "leading-zero",
      "input": "0001",
      "nodeHex": "0001",
      "pythonHex": "0001",
      "pythonError": null,
      "fullInputHex": true
    },
    {
      "id": "upper",
      "input": "AABB",
      "nodeHex": "aabb",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": true
    },
    {
      "id": "lower",
      "input": "aabb",
      "nodeHex": "aabb",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": true
    },
    {
      "id": "mixed-case",
      "input": "AaBb",
      "nodeHex": "aabb",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": true
    },
    {
      "id": "odd",
      "input": "1a7",
      "nodeHex": "1a",
      "pythonHex": null,
      "pythonError": "ValueError",
      "fullInputHex": false
    },
    {
      "id": "invalid-suffix",
      "input": "1ag123",
      "nodeHex": "1a",
      "pythonHex": null,
      "pythonError": "ValueError",
      "fullInputHex": false
    },
    {
      "id": "numeric-prefix",
      "input": "0x12",
      "nodeHex": "",
      "pythonHex": null,
      "pythonError": "ValueError",
      "fullInputHex": false
    },
    {
      "id": "space",
      "input": "aa bb",
      "nodeHex": "aa",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": false
    },
    {
      "id": "tab",
      "input": "aa\tbb",
      "nodeHex": "aa",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": false
    },
    {
      "id": "newline",
      "input": "aa\nbb",
      "nodeHex": "aa",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": false
    },
    {
      "id": "carriage-return",
      "input": "aa\rbb",
      "nodeHex": "aa",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": false
    },
    {
      "id": "form-feed",
      "input": "aa\fbb",
      "nodeHex": "aa",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": false
    },
    {
      "id": "vertical-tab",
      "input": "aa\u000bbb",
      "nodeHex": "aa",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": false
    },
    {
      "id": "split-byte",
      "input": "a b",
      "nodeHex": "",
      "pythonHex": null,
      "pythonError": "ValueError",
      "fullInputHex": false
    },
    {
      "id": "trailing-newline",
      "input": "aabb\n",
      "nodeHex": "aabb",
      "pythonHex": "aabb",
      "pythonError": null,
      "fullInputHex": false
    },
    {
      "id": "nonbreaking-space",
      "input": "aa bb",
      "nodeHex": "aa",
      "pythonHex": null,
      "pythonError": "ValueError",
      "fullInputHex": false
    },
    {
      "id": "fullwidth",
      "input": "ＡＡ",
      "nodeHex": "",
      "pythonHex": null,
      "pythonError": "ValueError",
      "fullInputHex": false
    },
    {
      "id": "nul-suffix",
      "input": "aabb\u0000",
      "nodeHex": "aabb",
      "pythonHex": null,
      "pythonError": "ValueError",
      "fullInputHex": false
    }
  ],
  "sha256": {
    "inputAscii": "abc",
    "digest": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",
    "cases": [
      {
        "suffix": "",
        "textLength": 64,
        "decodedBytes": 32,
        "sameDigestBytes": true,
        "fullInputSha256": true
      },
      {
        "suffix": "zz",
        "textLength": 66,
        "decodedBytes": 32,
        "sameDigestBytes": true,
        "fullInputSha256": false
      },
      {
        "suffix": "0",
        "textLength": 65,
        "decodedBytes": 32,
        "sameDigestBytes": true,
        "fullInputSha256": false
      },
      {
        "suffix": "\n",
        "textLength": 65,
        "decodedBytes": 32,
        "sameDigestBytes": true,
        "fullInputSha256": false
      }
    ]
  }
}
