DecoderBuffer: struct to class

This commit is contained in:
Max Kellermann 2014-09-22 08:49:14 +02:00
parent 90c228abca
commit f2c28d287a

View File

@ -34,12 +34,13 @@ class InputStream;
* create a buffer object, and use its high-level methods to fill and * create a buffer object, and use its high-level methods to fill and
* read it. It will automatically handle shifting the buffer. * read it. It will automatically handle shifting the buffer.
*/ */
struct DecoderBuffer { class DecoderBuffer {
Decoder *const decoder; Decoder *const decoder;
InputStream &is; InputStream &is;
DynamicFifoBuffer<uint8_t> buffer; DynamicFifoBuffer<uint8_t> buffer;
public:
/** /**
* Creates a new buffer. * Creates a new buffer.
* *