serializer._writeHostObject(object)
object
<Object>
调用此方法来写入某种宿主对象,即由原生 C++ 绑定创建的对象。
如果无法序列化 object
,则应抛出合适的异常。
此方法不存在于 Serializer
类本身,但可以由子类提供。
object
<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.
This method is not present on the Serializer
class itself but can be provided
by subclasses.