Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GNASH_CODESTREAM_H
00021 #define GNASH_CODESTREAM_H
00022
00023 #include <string>
00024 #include <boost/utility.hpp>
00025 #include <boost/cstdint.hpp>
00026 #include <istream>
00027 #include <sstream>
00028
00029 namespace gnash {
00030
00033 class CodeStreamException { };
00034
00040 class CodeStream : public std::istream, private boost::noncopyable
00041 {
00042 public:
00043 CodeStream(std::string data): std::istream(new std::stringbuf(data)){
00044
00045 }
00046
00048 boost::uint32_t read_V32();
00049
00051 boost::uint8_t read_as3op();
00052
00054 void seekBy(int change);
00055
00057 void seekTo(unsigned int set);
00058
00060 boost::int32_t read_S24();
00061
00063 int8_t read_s8();
00064
00066 boost::uint8_t read_u8();
00067
00070 void skip_V32();
00071
00072 };
00073
00074 }
00075 #endif