class DefaultSerializer extends v8Mod.DefaultSerializer
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.
- Annotations
- @JSType() @JSImport("node:v8", "DefaultSerializer") @native()
- Source
- nodeV8Mod.scala
- Alphabetic
- By Inheritance
- DefaultSerializer
- DefaultSerializer
- Serializer
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DefaultSerializer()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def releaseBuffer(): Buffer
Returns the stored internal buffer.
Returns the stored internal buffer. This serializer should not be used once the buffer is released. Calling this method results in undefined behavior if a previous write has failed.
- Definition Classes
- Serializer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def transferArrayBuffer(id: Double, arrayBuffer: ArrayBuffer): Unit
Marks an ArrayBuffer as having its contents transferred out of band.\ Pass the corresponding ArrayBuffer in the deserializing context to deserializer.transferArrayBuffer().
Marks an ArrayBuffer as having its contents transferred out of band.\ Pass the corresponding ArrayBuffer in the deserializing context to deserializer.transferArrayBuffer().
- Definition Classes
- Serializer
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def writeDouble(value: Double): Unit
Write a JS number value.
Write a JS number value.
- Definition Classes
- Serializer
- def writeHeader(): Unit
Writes out a header, which includes the serialization format version.
Writes out a header, which includes the serialization format version.
- Definition Classes
- Serializer
- def writeRawBytes(buffer: TypedArray): Unit
Write raw bytes into the serializer’s internal buffer.
Write raw bytes into the serializer’s internal buffer. The deserializer will require a way to compute the length of the buffer.
- Definition Classes
- Serializer
- def writeUint32(value: Double): Unit
Write a raw 32-bit unsigned integer.
Write a raw 32-bit unsigned integer.
- Definition Classes
- Serializer
- def writeUint64(hi: Double, lo: Double): Unit
Write a raw 64-bit unsigned integer, split into high and low 32-bit parts.
Write a raw 64-bit unsigned integer, split into high and low 32-bit parts.
- Definition Classes
- Serializer
- def writeValue(val: Any): Boolean
Serializes a JavaScript value and adds the serialized representation to the internal buffer.
Serializes a JavaScript value and adds the serialized representation to the internal buffer. This throws an error if value cannot be serialized.
- Definition Classes
- Serializer
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated