Open Icelk opened 2 years ago
Feel free to propose an API.
I suggest adding a into_inner
method which returns the Encoder
(private inside another struct EncoderInner
) which you then can provide when calling with_inner
. I can file a PR tomorrow.
The encoder structs create a new
raw::Encoder
each time you instantiate them. As stated by the docs, it's recommended to save theraw::Encoder
. To prevent creating newraw::Encoder
s for each new encoding, could this crate provide a way to reset the higher levelRead
andWrite
encoders? Thanks!