Skip to main content

Brine

Fast and efficient extensible serialiation and deserialization library for Roblox with native instance support out of the box

Functions

serialize

Brine.serialize(
dataInstance,
optionsBrineOptions?
) → Brined,References?

Serializes an instance into a string, with optional references

deserialize

Brine.deserialize(
dataBrined,
optionsBrineOptions?
) → Instance?

Deserializes a string into an instance, with optional references

Show raw api
{
    "functions": [
        {
            "name": "serialize",
            "desc": "Serializes an instance into a string, with optional references",
            "params": [
                {
                    "name": "data",
                    "desc": "",
                    "lua_type": "Instance"
                },
                {
                    "name": "options",
                    "desc": "",
                    "lua_type": "BrineOptions?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Brined, References?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 30,
                "path": "src/brine/src/Shared/Brine.lua"
            }
        },
        {
            "name": "deserialize",
            "desc": "Deserializes a string into an instance, with optional references",
            "params": [
                {
                    "name": "data",
                    "desc": "",
                    "lua_type": "Brined"
                },
                {
                    "name": "options",
                    "desc": "",
                    "lua_type": "BrineOptions?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Instance?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 54,
                "path": "src/brine/src/Shared/Brine.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "Brine",
    "desc": "Fast and efficient extensible serialiation and deserialization library for Roblox with native instance support out of the box",
    "source": {
        "line": 8,
        "path": "src/brine/src/Shared/Brine.lua"
    }
}