Serializer
Value members
Inherited methods
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.
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.
- Inherited from
- Serializer
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().
- Inherited from
- Serializer
Writes out a header, which includes the serialization format version.
Writes out a header, which includes the serialization format version.
- Inherited from
- Serializer
Write raw bytes into the serializer’s internal buffer. The deserializer will require a way to compute the length of the buffer.
Write raw bytes into the serializer’s internal buffer. The deserializer will require a way to compute the length of the buffer.
- Inherited from
- Serializer
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.
- Inherited from
- Serializer
Serializes a JavaScript value and adds the serialized representation to the internal buffer. This throws an error if value cannot be serialized.
Serializes a JavaScript value and adds the serialized representation to the internal buffer. This throws an error if value cannot be serialized.
- Inherited from
- Serializer