FilterStatus IResponseFilter.Filter(Stream dataIn, out long dataInRead, Stream dataOut, out long dataOutWritten) { return(logic.Filter(dataIn, out dataInRead, dataOut, dataOut.Length, out dataOutWritten) switch { ResponseFilterLogic.FilterStatus.NeedMoreData => FilterStatus.NeedMoreData, ResponseFilterLogic.FilterStatus.Done => FilterStatus.Done, _ => FilterStatus.Error });
protected override CefResponseFilterStatus Filter(UnmanagedMemoryStream dataIn, long dataInSize, out long dataInRead, UnmanagedMemoryStream dataOut, long dataOutSize, out long dataOutWritten) { return(logic.Filter(dataIn, out dataInRead, dataOut, dataOutSize, out dataOutWritten) switch { ResponseFilterLogic.FilterStatus.NeedMoreData => CefResponseFilterStatus.NeedMoreData, ResponseFilterLogic.FilterStatus.Done => CefResponseFilterStatus.Done, _ => CefResponseFilterStatus.Error });