62,615
社区成员
发帖
与我相关
我的任务
分享
public static class pciConfig extends Structure {
public static class ByReference extends pciConfig implements
Structure.ByReference {
}
public static class ByValue extends pciConfig implements
Structure.ByValue {
}
public short VendorID;
public short DeviceID;
public short Command;
public short Status;
public byte RevisionID;
public byte ProgIf;
public byte SubClass;
public byte BaseClass;
public byte CacheLineSize;
public byte LatencyTimer;
public byte HeaderType;
public byte BIST;
public static class type0 extends Structure {
public static class ByReference extends type0 implements
Structure.ByReference {
}
public static class ByValue extends type0 implements
Structure.ByValue {
}
public NativeLong[] BaseAddresses = new NativeLong[3];
public NativeLong[] Reserved1 = new NativeLong[2];
public NativeLong ROMBaseAddress;
public NativeLong[] Reserved2 = new NativeLong[2];
public byte InterruptLine;
public byte InterruptPin;
public byte MinimumGrant;
public byte MaximumLatency;
}
public static class union extends Union {
public static class ByReference extends union implements
Union.ByReference {
}
public static class ByValue extends union implements Union.ByValue {
}
public type0 typ;
}
public union u;
public byte[] DeviceSpecific = new byte[192];
}
但是老是报错,网上的例子中结构体都木有这么复杂,我不知道这种嵌套的怎么写,有木有JNA高手呀,求解惑!!!