调用此方法来写入某种宿主对象，即由原生 C++ 绑定创建的对象。
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