Click or drag to resize
IResponseFilterFilter Method
Version 55.0.0
Called to filter a chunk of data. This method will be called repeatedly until there is no more data to filter (resource response is complete), dataInRead matches dataIn.Length (all available pre-filter bytes have been read), and the method returns FilterStatus.Done or FilterStatus.Error.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 55.0.0.0 (55.0.0.0)
Syntax
FilterStatus Filter(
	Stream dataIn,
	out long dataInRead,
	Stream dataOut,
	out long dataOutWritten
)

Parameters

dataIn
Type: System.IOStream
is a Stream wrapping the underlying input buffer containing pre-filter data. Can be null.
dataInRead
Type: SystemInt64
Set to the number of bytes that were read from dataIn
dataOut
Type: System.IOStream
is a Stream wrapping the underlying output buffer that can accept filtered output data. Check dataOut.Length for maximum buffer size
dataOutWritten
Type: SystemInt64
Set to the number of bytes that were written into dataOut

Return Value

Type: FilterStatus
If some or all of the pre-filter data was read successfully but more data is needed in order to continue filtering (filtered output is pending) return FilterStatus.NeedMoreData. If some or all of the pre-filter data was read successfully and all available filtered output has been written return FilterStatus.Done. If an error occurs during filtering return FilterStatus.Error.
Remarks
Do not keep a reference to the buffers(Streams) passed to this method.
See Also