/* - BnkGet */ #define BNKGET(a,b) { int size; BnkfGetM(a,sizeof(b),&size,&(b)); } class PacketizeBnkIn { byte PTR _mdphdr; int _mdphdr_len; byte PTR _datainfo; int _datainfo_len; byte PTR _cmpimg; int _cmpimg_len; PUBLIC void bnkget() { BNKGET( "ONB:MDPHDR", _mdphdr ); BNKGET( "ONB:MDPHDR_LEN", _mdphdr_len ); BNKGET( "ONB:DATAINFO", _datainfo ); BNKGET( "ONB:DATAINFO_LEN", _datainfo_len ); BNKGET( "ONB:CMPIMG", _cmpimg ); BNKGET( "ONB:CMPIMG_LEN", _cmpimg_len ); } PUBLIC byte getMdpHdr (int pos) const { return _mdphdr [pos]; } PUBLIC byte getDataInfo(int pos) const { return _datainfo[pos]; } PUBLIC byte getCmpImg (int pos) const { return _cmpimg [pos]; } PUBLIC int getMdpHdrLen() const { return _mdphdr_len; } PUBLIC int getDataInfoLen() const { return _datainfo_len; } PUBLIC int getCmpImgLen() const { return _cmpimg_len; } };