"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/examples/bitfields.h" between
bed-3.0.3.src.tar.xz and bed-3.1.0.src.tar.xz

About: bed is an adjustable data format binary editor.

bitfields.h  (bed-3.0.3.src.tar.xz):bitfields.h  (bed-3.1.0.src.tar.xz)
skipping to change at line 31 skipping to change at line 31
#include "../screenpart.h" #include "../screenpart.h"
#include "../hassub.h" #include "../hassub.h"
extern char *filtername(Bitfield) ; extern char *filtername(Bitfield) ;
typedef short Bitnr; typedef short Bitnr;
typedef short Bytenr; typedef short Bytenr;
//extern int bitcpy(unsigned char *output,unsigned char *input,char bitout,char bitin,int bitnr) ; //extern int bitcpy(unsigned char *output,unsigned char *input,char bitout,char bitin,int bitnr) ;
extern int bitcpy(unsigned char *output,const unsigned char *const input,const c har bitout,const char bitin,const int bits) ; extern int bitcpy(unsigned char *output,const unsigned char *const input,const c har bitout,const char bitin,const int bits) ;
class Bitfield: public Filter { class Bitfield: public Filter {
private: private:
int maxlen; mutable int maxlen;
char *convstring; mutable char *convstring;
public: public:
short number; short number;
mutable int filebits; mutable int filebits;
Bitnr *bitnr; Bitnr *bitnr;
Bytenr *bytenr; Bytenr *bytenr;
char wantsaway; char wantsaway;
int wantaway(void) override ; int wantaway(void) override ;
Bitfield(int bits,int bytes,ScreenPart *pa); Bitfield(int bits,int bytes,ScreenPart *pa);
Bitfield(int bytes); Bitfield(int bytes);
Bitfield(int fb,int sb,const char *conv,ScreenPart *pa); Bitfield(int fb,int sb,const char *conv,ScreenPart *pa);
Bitfield(Bitfield const &rev); Bitfield(Bitfield const &rev);
int extendtolen(int newnumber) ; int extendtolen(int newnumber) ;
int getbit(int pos); int getbit(int pos);
int calcsizes(void) const ; int calcsizes(void) const ;
int resizeitem(int it,int size) ; int resizeitem(int it,int size) ;
int addrange(short beg,short len,short tobytes) ; int addrange(short beg,short len,short tobytes) ;
virtual char *convstr(void) override ; virtual char *convstr(void) const override ;
~Bitfield() ; ~Bitfield() ;
virtual Filter *newone(void) const override; virtual Filter *newone(void) const override;
virtual int chbytes(int b) override ; virtual int chbytes(int b) override ;
virtual int chbytesback(int b) override ; virtual int chbytesback(int b) override ;
int addposition(int pos,int bytes,int max) ; int addposition(int pos,int bytes,int max) ;
int rmpos(int pos) ; int rmpos(int pos) ;
int chbitspos(int pos,int bits) ; int chbitspos(int pos,int bits) ;
int chbytespos(int pos,int bytes) ; int chbytespos(int pos,int bytes) ;
virtual int fromfile(const unsigned char * const input,unsigned char *con st output) const override ; virtual int fromfile(const unsigned char * const input,unsigned char *con st output) const override ;
virtual int tofile(const unsigned char * const input,unsigned char * cons t output) override ; virtual int tofile(const unsigned char * const input,unsigned char * cons t output) override ;
virtual int equal(Filter *fil) override ; virtual int equal(const Filter *fil) const override ;
virtual int file2screenpos(int pos) override ; virtual int file2screenpos(int pos) override ;
virtual int screen2filepos(int pos) override ; virtual int screen2filepos(int pos) override ;
}; };
#endif #endif
 End of changes. 3 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)