encoder/Interface: move instance methods to abstract class
Rename struct Encoder to PreparedEncoder, and add a new (abstract) class Encoder which represents one encoder instance.
This commit is contained in:
@@ -29,7 +29,7 @@ EncoderToOutputStream(OutputStream &os, Encoder &encoder)
|
||||
/* read from the encoder */
|
||||
|
||||
char buffer[32768];
|
||||
size_t nbytes = encoder_read(&encoder, buffer, sizeof(buffer));
|
||||
size_t nbytes = encoder.Read(buffer, sizeof(buffer));
|
||||
if (nbytes == 0)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user