hex-world
    Preparing search index...

    Function serializeMap

    • Serializes a HexMap to a compact binary Uint8Array. Use for file saves, localStorage, or network transfer. Pair with deserializeMap.

      The binary format stores per-cell data ONLY — including the cellData metadata channel, but no MapMetadata and no descriptor arrays. Use serializeMapJSON when metadata or descriptors must travel with the map (HexPack does this automatically for entries that carry metadata).

      Parameters

      Returns Uint8Array