blob: 0a6595eb56c15e4838e408fd7ca3a59e81b7d99b [file] [log] [blame] [view]
# Channel class
<p>Typed wrapper around a Zircon channel object.</p>
## Constructors
[Channel](../zircon/Channel/Channel.md) ([Handle](../zircon/Handle-class.md) handle)
[Channel.fromFile](../zircon/Channel/Channel.fromFile.md) (String path)
Gets a Channel for accessing the file at <code>path</code>. _factory_
## Properties
##### [handle](../zircon/Channel/handle.md) &#8594; [Handle](../zircon/Handle-class.md)
_<span class="feature">read-only</span><span class="feature">inherited</span>_
##### [hashCode](../zircon/Channel/hashCode.md) &#8594; int
The hash code for this object.
_<span class="feature">read-only</span><span class="feature">inherited</span>_
##### [isValid](../zircon/Channel/isValid.md) &#8594; bool
_<span class="feature">read-only</span><span class="feature">inherited</span>_
##### [runtimeType](../zircon/Channel/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_<span class="feature">read-only</span><span class="feature">inherited</span>_
## Methods
##### [close](../zircon/Channel/close.md)() void
_<span class="feature">inherited</span>_
##### [noSuchMethod](../zircon/Channel/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_<span class="feature">inherited</span>_
##### [passHandle](../zircon/Channel/passHandle.md)() [Handle](../zircon/Handle-class.md)
_<span class="feature">inherited</span>_
##### [queryAndRead](../zircon/Channel/queryAndRead.md)() [ReadResult](../zircon/ReadResult-class.md)
##### [queryAndReadEtc](../zircon/Channel/queryAndReadEtc.md)() [ReadEtcResult](../zircon/ReadEtcResult-class.md)
##### [toString](../zircon/Channel/toString.md)() String
A string representation of this object.
_<span class="feature">inherited</span>_
##### [write](../zircon/Channel/write.md)(ByteData data, [List&lt;[Handle](../zircon/Handle-class.md)> handles]) int
##### [writeEtc](../zircon/Channel/writeEtc.md)(ByteData data, [List&lt;[HandleDisposition](../zircon/HandleDisposition-class.md)> handleDispositions]) int
## Operators
##### [operator ==](../zircon/Channel/operator_equals.md)(Object other) bool
The equality operator.
_<span class="feature">inherited</span>_
## Constants
##### [MAX_MSG_BYTES](../zircon/Channel/MAX_MSG_BYTES-constant.md) const int
##### [MAX_MSG_HANDLES](../zircon/Channel/MAX_MSG_HANDLES-constant.md) const int
##### [PEER_CLOSED](../zircon/Channel/PEER_CLOSED-constant.md) const int
##### [READ_MAY_DISCARD](../zircon/Channel/READ_MAY_DISCARD-constant.md) const int
##### [READABLE](../zircon/Channel/READABLE-constant.md) const int
##### [WRITABLE](../zircon/Channel/WRITABLE-constant.md) const int