高手们下面的结构用JAVA怎么表示
typedef struct   
{
  unsigned long flownr; /*流水号*/
unsigned long PlanMakeOrderNo; /* 制造命令单单号4bytes*/
  unsigned long ItemNo;     /*品码4bytes*/
  unsigned char ByWeightOrByCount;     /*0计重;1计数*/
unsigned char dummy; 
  long CurrentRealHandCount;    /*当前缴货数量*/
  long CurrentRealHandWeight;   /*当前缴货重量*/
}struct_CurrentRealHandInfo;  

解决方案 »

  1.   

    java 没有无符号数.
    好像也没有结构体.用class吧.
      

  2.   

    class CurrentRealHandInfo{
      long flownr; /*流水号*/ 
      long PlanMakeOrderNo; /* 制造命令单单号4bytes*/ 
      long ItemNo;    /*品码4bytes*/ 
      char ByWeightOrByCount;    /*0计重;1计数*/ 
      char dummy; 
      long CurrentRealHandCount;  /*当前缴货数量*/ 
      long CurrentRealHandWeight;  /*当前缴货重量*/ }
      

  3.   

    java中long 是8Byte,c++中好像是4Byte.