pub fn new(w: W, config: Config) -> EncoderWriter<W> {
        EncoderWriter {
            config,
            delegate: Some(w),
            extra_input: [0u8; MIN_ENCODE_CHUNK_SIZE],
            extra_input_occupied_len: 0,
            output: [0u8; BUF_SIZE],
            output_occupied_len: 0,
            panicked: false,
        }
    }
/// Create a new encoder that will write to the provided delegate writer `w`.
Create a new encoder that will write to the provided delegate writer `w`.
Create a new encoder that will write to the provided delegate writer ` w ` .
pub fn new(w: W, config: Config) -> EncoderWriter<W> {
        EncoderWriter {
            config,
            delegate: Some(w),
            extra_input: [0u8; MIN_ENCODE_CHUNK_SIZE],
            extra_input_occupied_len: 0,
            output: [0u8; BUF_SIZE],
            output_occupied_len: 0,
            panicked: false,
        }
    }
pub fn new ( w : W , config : Config ) -> EncoderWriter < W > { EncoderWriter { config , delegate : Some ( w ) , extra_input : [ 0u8 ; MIN_ENCODE_CHUNK_SIZE ] , extra_input_occupied_len : 0 , output : [ 0u8 ; BUF_SIZE ] , output_occupied_len : 0 , panicked : false , } }
Create a new encoder that will write to the provided delegate writer `w`.
Create a new encoder that will write to the provided delegate writer ` w ` .
w
W
config
Config
w
W
config
Config