TIOStreamTransport class

This is the most commonly used base transport. It takes an InputStream and an OutputStream and uses those to perform all transport operations. This allows for compatibility with all the nice constructs Dart already has to provide a variety of types of streams.

Inheritance

Constructors

TIOStreamTransport.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
inFrame bool
Marks the end of the a message, if applicable.
getter/setter pairinherited
inputBuffer List<int?>?
getter/setter pair
isOpen bool
Queries whether the transport is open. Returns true if the transport is open.
no setteroverride
outputBuffer List<Int8List>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future
Closes the transport.
override
consumeBuffer(int len) → void
Consume len bytes from the buffer.
inherited
flush([bool oneway = false]) Future
Flush any pending data out of a transport buffer. Throws TTransportError if there was an error writing out data.
override
getBuffer() Int8List?
Returns the bytes list
inherited
getBufferPosition() int
Returns the position in the buffer.
inherited
getBytesRemainingInBuffer() int
Returns the number of bytes available in the write buffer.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future
Opens the transport for reading/writing. Throws TTransportError if the transport could not be opened.
override
read(Int8List? buffer, int? offset, int? length) int
Reads from the underlying input stream if not null.
override
readAll(Int8List buffer, int offset, int length) int
Guarantees that all of length bytes are actually read off the transport. Returns the number of bytes actually read, which must be equal to length. Throws TTransportError if there was an error reading data
inherited
toString() String
A string representation of this object.
inherited
write(Int8List buffer, int offset, int length) → void
Writes to the underlying output stream if not null.
override
writeAll(Int8List buffer) → void
Writes the bytes to the output. Throws TTransportError if there was an error writing data
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited