TMemoryInputTransport class

Memory input transport.

Inheritance

Constructors

TMemoryInputTransport.new([Int8List? _buf])

Properties

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

Methods

close() Future<void>
Closes the transport.
override
consumeBuffer(int len) → void
Consume len bytes from the buffer.
override
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
override
getBufferPosition() int
Returns the position in the buffer.
override
getBytesRemainingInBuffer() int
Returns the number of bytes available in the write buffer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
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 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
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
reset({Int8List? buf, int offset = 0, int? length}) → void
toString() String
A string representation of this object.
inherited
write(Int8List buffer, int offset, int length) Future<void>
Writes up to len bytes from the buffer. Throws TTransportError if there was an error writing data
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