TTransport class abstract

Constructors

TTransport()

Properties

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

Methods

close() Future
Closes the transport.
consumeBuffer(int len) → void
Consume len bytes from the buffer.
flush([bool oneway = false]) Future
Flush any pending data out of a transport buffer. Throws TTransportError if there was an error writing out data.
getBuffer() Int8List?
Returns the bytes list
getBufferPosition() int
Returns the position in the buffer.
getBytesRemainingInBuffer() int
Returns the number of bytes available in the write buffer.
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.
read(Int8List buffer, int offset, int length) int
Reads up to length bytes into buffer, starting at offset. Returns the number of bytes actually read. Throws TTransportError if there was an error reading data
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
toString() String
A string representation of this object.
inherited
write(Int8List buffer, int offset, int length) → void
Writes up to len bytes from the buffer. Throws TTransportError if there was an error writing data
writeAll(Int8List buffer) → void
Writes the bytes to the output. Throws TTransportError if there was an error writing data

Operators

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