tryFrameOf method

List<int> tryFrameOf(
  1. List<int> data
)

data as the inner codec sees it: the transport compression undone.

Unlike decode this never throws: it hands back data itself when it does not decompress.

Implementation

List<int> tryFrameOf(List<int> data) {
  try {
    return _frameOf(data);
  } catch (_) {
    return data;
  }
}