serializer._writeHostObject(object)


此方法用于写入某种主机对象,即由原生 C++ 绑定创建的对象。如果无法序列化 object,应抛出适当的异常。

【This method is called to write some kind of host object, i.e. an object created by native C++ bindings. If it is not possible to serialize object, a suitable exception should be thrown.】

此方法本身并不存在于 Serializer 类中,但可以由子类提供。

【This method is not present on the Serializer class itself but can be provided by subclasses.】