{
    "Function": "encodeHex",
    "File": "contracts/contracts/nomad-core/libs/TypedMemView.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "byteHex",
        "byteHex"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function encodeHex(uint256 _b) internal pure returns (uint256 first, uint256 second) {\n    for (uint8 i = 31; i > 15; ) {\n      uint8 _byte = uint8(_b >> (i * 8));\n      first |= byteHex(_byte);\n      if (i != 16) {\n        first <<= 16;\n      }\n      unchecked {\n        i -= 1;\n      }\n    }\n\n    // abusing underflow here =_=\n    for (uint8 i = 15; i < 255; ) {\n      uint8 _byte = uint8(_b >> (i * 8));\n      second |= byteHex(_byte);\n      if (i != 0) {\n        second <<= 16;\n      }\n      unchecked {\n        i -= 1;\n      }\n    }\n  }"
}