00001 #ifndef _BYTEARRAYINPUTSTREAM_H_ 00002 #define _BYTEARRAYINPUTSTREAM_H_ 00003 00004 #include "InputStream.h" 00008 class TByteArrayInputStream : public TInputStream 00009 { 00010 protected: 00011 unsigned char *data; 00012 unsigned char *pointer; 00013 int total; 00014 int available; 00015 public: 00016 TByteArrayInputStream(void *, int); 00017 ~TByteArrayInputStream(); 00018 int Available(void); 00019 int Position(void); 00020 int Read(void); 00021 void Reset(void); 00022 int Skip(int); 00023 }; 00024 00025 #endif 00026