PacketTransformer class

combine partial/fragmented packets emitted Packet is a reference to the buffer, not a copy. handling must be synchronous, before returning control to the transformer

Inheritance
Implemented types

Constructors

PacketTransformer({required HeaderParser parserBuffer})

Properties

hashCode int
The hash code for this object.
no setterinherited
parserBuffer HeaderParser
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Uint8List bytesIn) → void
Adds a data event to the sink.
override
addError(Object e, [StackTrace? st]) → void
Adds an error to the sink.
override
bind(Stream<Uint8List> stream) Stream<Packet>
Transforms the provided stream.
override
cast<RS, RT>() StreamTransformer<RS, RT>
Provides a StreamTransformer<RS, RT> view of this stream transformer.
inherited
close() → void
Closes the sink.
override
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