Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
An instance of __serializer__ can be invoked directly, without using the provided stream operations. This could be useful for implementing algorithms on objects whose interface does not conform to __Stream__. For example, a__serializer__ 实例可直接调用,无需依赖库提供的流操作。这对于在接口不符合 __Stream__ 要求的对象(例如 [@https://github.com/libuv/libuv*libuv* socket]. The serializer interface is interactive; the caller invokes it repeatedly to produce buffers until all of the serialized octets have been generated. Then the serializer is destroyed.套接字])上实现算法时非常有用。序列化器接口是交互式的:调用方反复调用它以生成缓冲区,直到所有序列化后的八位字节都已生成完毕为止,随后销毁该序列化器。