Closed i-kovalyov closed 6 years ago
Can you also add the same for the encoder?
Sorry, to confirm for encoder. Do you want to add "unwrap" option for encoder? Using unwrap = true encoder can encode obj.value instead of obj.
Using this option we can pass decoder output to encoder.
The overall goal is to have source.pipe(encoder).pipe(decoder).pipe(sink) have the same input/output sata. I would keep the name of the option the same, but do what make sense to you.
Sorry, don't understand how to get same input and output data in this scanario: source.pipe(encoder).pipe(decoder({wrap:true})).pipe(sink).
For example when I pass null to encoder it will translate it to C0 byte, then decoder will decode C0 byte to {value:null}. I can't translate output to null using extra transformation at encoder level.
Can you explain please?
What I mean is that the encode takes objects in the form of { value }
.
Can you please rebase? This now conflicts with master.
Fixed Stream decode processing error: after C0 byte (nil) stream switched to "End of stream state", added test. Minor changes made in modules formatting to satisfy modules formatting rules checked in tests.