本篇文章的部分/全部内容还没有进行翻译。
This module provides simple value serialization.
serialization.serialize(value: any except functions[, pretty:boolean/number]): string
serialization.unserialize
. The generated output is Lua code. Supports basic types (nil, boolean, number, string) and tables without cycles (will error out when cycles are detected, unless in pretty
print mode). Properly handles NaN values and infinity.pretty
mode can be used to generate output for display to the user, this output will in most circumstances not be readable with serialization.unserialize
.
serialization.unserialize(value: string): any
serialization.serialize
.