UnsafeFramingX extension

on

Methods

decodeFramesIntoBorrowed(BorrowedBytesCodec codec, void onFrame(FrameBorrowedView frame), {int capacity = 64 * 1024, bool allowTrailingBytesAtEof = false, bool cancelOnError = false}) Future<void>

Available on Stream<List<int>>, provided by the UnsafeFramingX extension

Decode frames and deliver them to onFrame as a short-lived FrameBorrowedView.