X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=pc-tools%2Fldc2%2Fsrc%2Ftape_block.hh;h=c1084e9e5c4bdb17c6825ffda63c4fe7875854c3;hb=1ddb3009c3202fea8df591eb2965143537a698a0;hp=f023ead0d05aa1dd6cbb38f3043599be1c82803a;hpb=6c06db96fb1c7482f8cb7e1d14eee91603fbb894;p=h316.git diff --git a/pc-tools/ldc2/src/tape_block.hh b/pc-tools/ldc2/src/tape_block.hh index f023ead..c1084e9 100644 --- a/pc-tools/ldc2/src/tape_block.hh +++ b/pc-tools/ldc2/src/tape_block.hh @@ -48,6 +48,7 @@ public: // methods virtual int get_subtype(); virtual vector get_description(); int get_raw_size(); + int get_discarded_bytes(); unsigned char * get_raw_data(); static tape_block * gen_from_fd(int fd, @@ -56,8 +57,11 @@ public: // methods void * start_stop_arg=0 ); -private: // methods +protected: // methods tape_block(); + string get_typestring(); + +private: // methods tape_block (int fd_p, void(*input_start)(void *)=0, void (*input_stop)(void *)=0, @@ -70,11 +74,12 @@ private: // methods protected: // members int block_type; //!< Type of this block. tb_state_t init_state; //!< Initialisation state. - int data_read; //!< Total data consumption during intialisation. + int discarded_bytes; //!< Amount of bytes discarded before beginning. unsigned char * raw_data; //!< Raw block data in bytes. int raw_size; //!< Size of the raw data. unsigned short * word_data; //!< Data organized in machine words. int word_size; //!< Size of the blocks in machine words. + int poolsize; //!< Amount of data malloc'ed }; // class tape_block