Constructs an OutputStream using the encoding and format provided by the communicator.
The communicator.
Constructs an empty output stream.
Optionalencoding: EncodingVersionThe encoding version to use. null is equivalent to encoding 1.1.
Optionalformat: FormatTypeThe class format to use. null is equivalent to FormatType.CompactFormat.
Gets or sets the stream position.
ReadonlysizeGets the size of the stream.
Releases any data retained by encapsulations.
Ends the current encapsulation.
Marks the end of an exception.
Computes the amount of data written since the previous call to startSize and writes that value at the saved position.
The saved position.
Marks the end of a slice for a class instance or user exception.
Marks the end of a class instance.
Expand the stream to accept more data.
The number of bytes to accommodate in the stream.
Indicates that marshaling is complete.
The Uint8Array containing the encoded request or reply
Returns whether the stream is empty.
True if no data has been written yet, false otherwise.
Resizes the stream to a new size.
The new size of the stream in bytes.
Writes the start of an encapsulation. A nested encapsulation uses the encoding version and class format of the enclosing encapsulation; a top-level encapsulation uses the stream's encoding version and class format.
Writes the start of an encapsulation using the specified encoding version and class format.
The encoding version of the encapsulation.
Optionalformat: FormatTypeThe class format of the encapsulation. If not specified, the OutputStream's class format is used.
Marks the start of an exception.
Returns the current position and allocates four bytes for a fixed-length (32-bit) size value.
The current position.
Marks the start of a new slice for a class instance or user exception.
The Slice type ID corresponding to this slice.
The Slice compact type ID corresponding to this slice or -1 if no compact ID is defined for the type ID.
True if this is the last slice, false otherwise.
Marks the start of a class instance.
Preserved slices for this instance, or null. These slices are marshaled with the
instance only when this stream uses the sliced format; otherwise they are ignored.
Swaps the contents of this stream with another.
The other stream.
Writes a blob of bytes to the stream.
The blob of bytes to write.
Writes a boolean to the stream.
The boolean to write to the stream.
Writes a byte to the stream.
The byte to write to the stream.
Writes a byte sequence to the stream.
Optionalv: Uint8Array<ArrayBufferLike>The byte sequence to write to the stream. Passing null causes an empty sequence to be written
to the stream.
Writes a double to the stream.
The double to write to the stream.
Writes an empty encapsulation using the given encoding version.
The encoding version of the encapsulation.
Writes a pre-encoded encapsulation to the stream.
The encapsulation data.
Writes an enumerated value.
The enumerator to write to the stream.
Writes a user exception to the stream.
The user exception to write.
Writes a float to the stream.
The float to write to the stream.
Writes an integer to the stream.
The integer to write to the stream.
Writes a long to the stream.
The long to write to the stream.
Write the header information for an optional value.
The numeric tag associated with the value.
The optional format of the value.
true if the current encoding version supports optional values, false otherwise. If true,
the data associated with the optional value must be written next.
Writes an optional proxy to the stream.
The optional tag.
Optionalv: ObjectPrxThe proxy to write, or undefined if the optional proxy is not present.
Encodes the state of class instances whose insertion was delayed during a previous call to OutputStream#writeValue. This function must be called only once. For backward compatibility with encoding version 1.0, this function must be called only when non-optional fields or parameters use class types.
Writes a short to the stream.
The short to write to the stream.
Writes a size to the stream.
The size to write.
Writes a string to the stream.
The string to write to the stream. Passing null causes an empty string to be written to the
stream.
Writes a class instance to the stream.
The value to write. With the 1.0 encoding, this method writes an index and the state of the value is marshaled when OutputStream#writePendingValues is called; with the 1.1 encoding, the state is marshaled eagerly, without waiting for OutputStream#writePendingValues.
Represents a byte buffer used for marshaling data using the Slice encoding.