pub fn BrotliCompressCustomIo<ErrType, InputType, OutputType, Alloc: BrotliAlloc, MetablockCallback: FnMut(&mut PredictionModeContextMap<InputReferenceMut<'_>>, &mut [StaticCommand], InputPair<'_>, &mut Alloc)>(
r: &mut InputType,
w: &mut OutputType,
input_buffer: &mut [u8],
output_buffer: &mut [u8],
params: &BrotliEncoderParams,
alloc: Alloc,
metablock_callback: &mut MetablockCallback,
unexpected_eof_error_constant: ErrType
) -> Result<usize, ErrType>where
InputType: CustomRead<ErrType>,
OutputType: CustomWrite<ErrType>,