IndiStreamDecoder class final Protocol
Incrementally decodes INDI wire bytes into IndiCommands.
Feed chunks of any size with add. Complete commands are passed to
onCommand; malformed input is reported to onError and decoding
continues with the next command.
Constructors
- IndiStreamDecoder({required void onCommand(IndiCommand command), required void onError(IndiProtocolException error), int maxTextLength = 4 * 1024 * 1024})
-
Creates a decoder that reports commands to
onCommandand problems toonError.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
List< int> chunk) → void - Feeds the next chunk of bytes.
-
close(
) → void - Signals the end of the input. Reports an error if it stopped in the middle of a command.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited