MagicHeaderAndLengthByteTransformer constructor
MagicHeaderAndLengthByteTransformer({})
Implementation
MagicHeaderAndLengthByteTransformer({bool sync = false, this.cancelOnError, this.header, this.maxLen = 1024, this.clearTimeout = const Duration(seconds: 1)}) {
_partial = [];
_controller = new StreamController<Uint8List>(
onListen: _onListen,
onCancel: _onCancel,
onPause: () {
_subscription!.pause();
},
onResume: () {
_subscription!.resume();
},
sync: sync);
}