Skip to main content

construct

Function construct 

Source
pub fn construct(name: &str, args: &[Value]) -> Result<Value, String>
Expand description

new v8.Serializer() / new v8.Deserializer(buffer) (and the Default* aliases). node-js has no V8 structured-clone binary format, so these are JSON-backed shims: a Serializer accumulates ONE writeValued value as JSON and hands it back from releaseBuffer as a UTF-8 Buffer; a Deserializer parses that JSON back with readValue. The granular byte writers/readers (writeUint32/writeDouble/writeRawBytes/…) are NOT modeled — they only make sense against the real binary layout (see the report’s deferred list).