{
    "content": [
        {
            "type": "text",
            "text": "# String::CRC32 (perldoc)\n\n## NAME\n\nString::CRC32 - Perl interface for cyclic redundancy check generation\n\n## SYNOPSIS\n\nuse String::CRC32;\n$crc = crc32(\"some string\");\n$crc = crc32(\"some string\", initvalue);\n$somestring = \"some string\";\n$crc = crc32($somestring);\nprintf \"%08x\\n\", $crc;\nopen my $fh, '<', 'location/of/some.file' or die $!;\nbinmode $fh;\n$crc = crc32($fh);\nclose $fh;\n\n## DESCRIPTION\n\nThe CRC32 module calculates CRC sums of 32 bit lengths as integers. It generates the same CRC\nvalues as ZMODEM, PKZIP, PICCHECK and many others.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **EXAMPLES**\n- **AUTHOR**\n- **LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "String::CRC32",
        "section": "",
        "mode": "perldoc",
        "summary": "String::CRC32 - Perl interface for cyclic redundancy check generation",
        "synopsis": "use String::CRC32;\n$crc = crc32(\"some string\");\n$crc = crc32(\"some string\", initvalue);\n$somestring = \"some string\";\n$crc = crc32($somestring);\nprintf \"%08x\\n\", $crc;\nopen my $fh, '<', 'location/of/some.file' or die $!;\nbinmode $fh;\n$crc = crc32($fh);\nclose $fh;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "$crc = crc32(\"some string\");",
            "results in the same as",
            "$crc = crc32(\" string\", crc32(\"some\"));",
            "This is useful for subsequent CRC checking of substrings.",
            "You may even check files:",
            "open my $fh, '<', 'location/of/some.file' or die $!;",
            "binmode $fh;",
            "$crc = crc32($fh);",
            "close $fh;",
            "A init value may also have been supplied in the above example."
        ],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "String::CRC32 - Perl interface for cyclic redundancy check generation\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use String::CRC32;\n\n$crc = crc32(\"some string\");\n$crc = crc32(\"some string\", initvalue);\n\n$somestring = \"some string\";\n$crc = crc32($somestring);\nprintf \"%08x\\n\", $crc;\n\nopen my $fh, '<', 'location/of/some.file' or die $!;\nbinmode $fh;\n$crc = crc32($fh);\nclose $fh;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The CRC32 module calculates CRC sums of 32 bit lengths as integers. It generates the same CRC\nvalues as ZMODEM, PKZIP, PICCHECK and many others.\n\nDespite its name, this module is able to compute the checksum of files as well as strings.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "$crc = crc32(\"some string\");\n\nresults in the same as\n\n$crc = crc32(\" string\", crc32(\"some\"));\n\nThis is useful for subsequent CRC checking of substrings.\n\nYou may even check files:\n\nopen my $fh, '<', 'location/of/some.file' or die $!;\nbinmode $fh;\n$crc = crc32($fh);\nclose $fh;\n\nA init value may also have been supplied in the above example.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Soenke J. Peters <petersperl@opcenter.de>\n\nCurrent maintainer: LEEJO\n\nAddress bug reports and comments to: <https://github.com/leejo/string-crc32/issues>\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "CRC algorithm code taken from CRC-32 by Craig Bruce. The module stuff is inspired by a similar\nperl module called String::CRC by David Sharnoff & Matthew Dillon. Horst Fickenscher told me\nthat it could be useful to supply an init value to the crc checking function and so I included\nthis possibility.\n\nThe author of this package disclaims all copyrights and releases it into the public domain.\n",
                "subsections": []
            }
        }
    }
}