DefaultDeserializer

@JSImport("node:v8", "DefaultDeserializer") @native @JSType class DefaultDeserializer extends DefaultDeserializer

A subclass of Serializer that serializes TypedArray (in particular Buffer) and DataView objects as host objects, and only stores the part of their underlying ArrayBuffers that they are referring to.

trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(data: TypedArray)

Inherited methods

def getWireFormatVersion(): Double

Reads the underlying wire format version. Likely mostly to be useful to legacy code reading old wire format versions. May not be called before .readHeader().

Reads the underlying wire format version. Likely mostly to be useful to legacy code reading old wire format versions. May not be called before .readHeader().

Inherited from
Deserializer
def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def readDouble(): Double

Read a JS number value.

Read a JS number value.

Inherited from
Deserializer
def readHeader(): Boolean

Reads and validates a header (including the format version). May, for example, reject an invalid or unsupported wire format. In that case, an Error is thrown.

Reads and validates a header (including the format version). May, for example, reject an invalid or unsupported wire format. In that case, an Error is thrown.

Inherited from
Deserializer
def readRawBytes(length: Double): Buffer

Read raw bytes from the deserializer’s internal buffer. The length parameter must correspond to the length of the buffer that was passed to serializer.writeRawBytes().

Read raw bytes from the deserializer’s internal buffer. The length parameter must correspond to the length of the buffer that was passed to serializer.writeRawBytes().

Inherited from
Deserializer
def readUint32(): Double

Read a raw 32-bit unsigned integer and return it.

Read a raw 32-bit unsigned integer and return it.

Inherited from
Deserializer
def readUint64(): Tuple2[Double, Double]

Read a raw 64-bit unsigned integer and return it as an array [hi, lo] with two 32-bit unsigned integer entries.

Read a raw 64-bit unsigned integer and return it as an array [hi, lo] with two 32-bit unsigned integer entries.

Inherited from
Deserializer
def readValue(): Any

Deserializes a JavaScript value from the buffer and returns it.

Deserializes a JavaScript value from the buffer and returns it.

Inherited from
Deserializer
def toLocaleString(): String
Inherited from
Object
def transferArrayBuffer(id: Double, arrayBuffer: ArrayBuffer): Unit

Marks an ArrayBuffer as having its contents transferred out of band. Pass the corresponding ArrayBuffer in the serializing context to serializer.transferArrayBuffer() (or return the id from serializer._getSharedArrayBufferId() in the case of SharedArrayBuffers).

Marks an ArrayBuffer as having its contents transferred out of band. Pass the corresponding ArrayBuffer in the serializing context to serializer.transferArrayBuffer() (or return the id from serializer._getSharedArrayBufferId() in the case of SharedArrayBuffers).

Inherited from
Deserializer
def valueOf(): Any
Inherited from
Object