Encoder now writes data directly in the user buffer