7 #ifndef BUFFEREDINDEXINPUT_H
8 #define BUFFEREDINDEXINPUT_H
26 static const int32_t BUFFER_SIZE;
38 virtual uint8_t readByte();
41 void setBufferSize(int32_t newSize);
45 int32_t getBufferSize();
53 virtual void readBytes(uint8_t* b, int32_t offset, int32_t length);
64 virtual void readBytes(uint8_t* b, int32_t offset, int32_t length,
bool useBuffer);
71 virtual int64_t getFilePointer();
76 virtual void seek(int64_t pos);
82 virtual void newBuffer(ByteArray newBuffer);
84 void checkBufferSize(int32_t bufferSize);
89 virtual void refill();
95 virtual void readInternal(uint8_t* b, int32_t offset, int32_t length) = 0;
101 virtual void seekInternal(int64_t pos) = 0;