/*************************************** .h ******************************* */
LIB void function(
unsigned long long cf, unsigned long sm, unsigned long bd, unsigned long len, short* data, int state, //输如参数
unsigned int& count_Out,//输出数量
RESULT*& pout //输出数据对应输出数量
);
typedef struct
{
unsigned char data_type;
SPECIAL_RESULT special_result;
}RESULT;
typedef struct
{
uint8_t type;
int64_t s_cf;
uint32_t s_bw;
uint8_t s_demo;
}SPECIAL_RESULT;
/********************************************* java ************************************** */
@Data
@EqualsAndHashCode(callSuper=true)
@Structure.FieldOrder({"data_type","special_result"})
public class RESULT extends Structure {
public byte data_type;
public SpecialResult special_result;
public OtherResult other_result;
public static class ByReference extends RESULT implements Structure.ByReference {
}
public RESULT() {
super(ALIGN_NONE);
}
}
@Data
@EqualsAndHashCode(callSuper=true)
@Structure.FieldOrder({"type", "s_cf", "s_bw", "s_demo"})
public class SpecialResult extends Structure {
public byte type;
public long s_cf;
public int s_bw;
public byte s_demo;
public SpecialResult() {
super(ALIGN_NONE);
}
}
void NarrowBandSort(long cf,NativeLong sm, NativeLong bd, NativeLong len, short[] data, int state, IntByReference count_Out, PointerByReference pout);