Uses JsonBin

构造函数

访问器

方法

构造函数

访问器

  • get instance(): JsonBinWrite
  • 返回 JsonBinWrite

    The singleton instance of the JsonBinWrite class.

    Gets the singleton instance of the JsonBinWrite class. If it doesn't exist, creates a new one.

    获取JsonBinWrite类的单例实例。如果不存在,则创建一个新的实例。

方法

  • 参数

    • o: any

      The object to be serialized.

    • 可选enableClass: boolean

      A flag indicating whether to include class information (default is false).

    返回 ArrayBuffer

    The serialized object as an ArrayBuffer.

    Serializes the given object into a binary format and returns the resulting buffer.

    将给定对象序列化为二进制格式并返回生成的缓冲区。