v8.serialize(value)
使用 DefaultSerializer
将 value
序列化到缓冲区中。
尝试序列化需要大于 buffer.constants.MAX_LENGTH
的缓冲区的大对象时,则将抛出 ERR_BUFFER_TOO_LARGE
。
Uses a DefaultSerializer
to serialize value
into a buffer.
ERR_BUFFER_TOO_LARGE
will be thrown when trying to
serialize a huge object which requires buffer
larger than buffer.constants.MAX_LENGTH
.