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).
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
cellDatametadata channel, but no MapMetadata and no descriptor arrays. UseserializeMapJSONwhen metadata or descriptors must travel with the map (HexPack does this automatically for entries that carry metadata).