{
    "content": [
        {
            "type": "text",
            "text": "# BSON::Int64 (perldoc)\n\n**Summary:** BSON::Int64 - BSON type wrapper for Int64\n\n**Synopsis:** use BSON::Types ':all';\nbsonint64( $number );\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **VERSION** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (7 lines)\n- **ATTRIBUTES** (3 lines)\n- **METHODS** (12 lines)\n- **OVERLOADING** (4 lines)\n- **AUTHORS** (4 lines)\n- **COPYRIGHT AND LICENSE** (6 lines)\n\n## Full Content\n\n### NAME\n\nBSON::Int64 - BSON type wrapper for Int64\n\n### VERSION\n\nversion v1.12.2\n\n### SYNOPSIS\n\nuse BSON::Types ':all';\n\nbsonint64( $number );\n\n### DESCRIPTION\n\nThis module provides a BSON type wrapper for a numeric value that would be represented in BSON\nas a 64-bit integer.\n\nIf the value won't fit in a 64-bit integer, an error will be thrown.\n\nOn a Perl without 64-bit integer support, the value must be a Math::BigInt object.\n\n### ATTRIBUTES\n\nvalue\nA numeric scalar. It will be coerced to an integer. The default is 0.\n\n### METHODS\n\nTOJSON\nOn a 64-bit perl, returns the value as an integer. On a 32-bit Perl, it will be returned as a\nMath::BigInt object, which will fail to serialize unless a \"TOJSON\" method is defined for that\nor in package \"universal\".\n\nIf the \"BSONEXTJSON\" environment variable is true and the \"BSONEXTJSONRELAXED\" environment\nvariable is false, returns a hashref compatible with MongoDB's extended JSON\n<https://github.com/mongodb/specifications/blob/master/source/extended-json.rst> format, which\nrepresents it as a document as follows:\n\n{\"$numberLong\" : \"223372036854775807\"}\n\n### OVERLOADING\n\nThe numification operator, \"0+\" is overloaded to return the \"value\", the full \"minimal set\" of\noverloaded operations is provided (per overload documentation) and fallback overloading is\nenabled.\n\n### AUTHORS\n\n*   David Golden <david@mongodb.com>\n\n*   Stefan G. <minimalist@lavabit.com>\n\n### COPYRIGHT AND LICENSE\n\nThis software is Copyright (c) 2020 by Stefan G. and MongoDB, Inc.\n\nThis is free software, licensed under:\n\nThe Apache License, Version 2.0, January 2004\n\n"
        }
    ],
    "structuredContent": {
        "command": "BSON::Int64",
        "section": "",
        "mode": "perldoc",
        "summary": "BSON::Int64 - BSON type wrapper for Int64",
        "synopsis": "use BSON::Types ':all';\nbsonint64( $number );",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "ATTRIBUTES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "OVERLOADING",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "BSON::Int64 - BSON type wrapper for Int64\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version v1.12.2\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use BSON::Types ':all';\n\nbsonint64( $number );\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provides a BSON type wrapper for a numeric value that would be represented in BSON\nas a 64-bit integer.\n\nIf the value won't fit in a 64-bit integer, an error will be thrown.\n\nOn a Perl without 64-bit integer support, the value must be a Math::BigInt object.\n",
                "subsections": []
            },
            "ATTRIBUTES": {
                "content": "value\nA numeric scalar. It will be coerced to an integer. The default is 0.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "TOJSON\nOn a 64-bit perl, returns the value as an integer. On a 32-bit Perl, it will be returned as a\nMath::BigInt object, which will fail to serialize unless a \"TOJSON\" method is defined for that\nor in package \"universal\".\n\nIf the \"BSONEXTJSON\" environment variable is true and the \"BSONEXTJSONRELAXED\" environment\nvariable is false, returns a hashref compatible with MongoDB's extended JSON\n<https://github.com/mongodb/specifications/blob/master/source/extended-json.rst> format, which\nrepresents it as a document as follows:\n\n{\"$numberLong\" : \"223372036854775807\"}\n",
                "subsections": []
            },
            "OVERLOADING": {
                "content": "The numification operator, \"0+\" is overloaded to return the \"value\", the full \"minimal set\" of\noverloaded operations is provided (per overload documentation) and fallback overloading is\nenabled.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "*   David Golden <david@mongodb.com>\n\n*   Stefan G. <minimalist@lavabit.com>\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "This software is Copyright (c) 2020 by Stefan G. and MongoDB, Inc.\n\nThis is free software, licensed under:\n\nThe Apache License, Version 2.0, January 2004\n",
                "subsections": []
            }
        }
    }
}