/* - BnkGet */ #define BNKGET(a,b) { int size; BnkfGetM(a,sizeof(b),&size,&(b)); } class ImageDivBnkIn { int _full_x; int _full_y; byte PTR _image; PUBLIC void bnkget() { BNKGET( "ONB:FULL_X", _full_x ); BNKGET( "ONB:FULL_Y", _full_y ); BNKGET( "ONB:IMAGE", _image ); // "ONB:IMAGE_LEN" is not checked. Use carefully, please. } // getter PUBLIC int getFullX() const { return _full_x; } PUBLIC int getFullY() const { return _full_y; } PUBLIC byte getImage(int pos) const { return _image[pos]; } };