Click or drag to resize

IResponseFilterFilter Method

Version 130.1.90
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: 129.0.110.0 (129.0.110.0)
Syntax
FilterStatus Filter(
	Stream dataIn,
	out long dataInRead,
	Stream dataOut,
	out long dataOutWritten
)

Parameters

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

Return Value

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