配置
本页介绍 Fory 配置参数和语言模式。
Fory 类
主要序列化接口:
class Fory:
def __init__(
self,
xlang: bool = False,
ref: bool = False,
strict: bool = True,
compatible: bool = False,
max_depth: int = 50
)
ThreadSafeFory 类
使用线程本地存储的线程安全序列化接口:
class ThreadSafeFory:
def __init__(
self,
xlang: bool = False,
ref: bool = False,
strict: bool = True,
compatible: bool = False,
max_depth: int = 50
)
参数
| 参数 |
|---|