Examining Microsoft's J/Direct
By Andrew Wilson
Dr. Dobb's Journal January 1998
// Native C Version typedef struct _MEMORYSTATUS { DWORD dwLength; DWORD dwMemoryLoad; DWORD dwTotalPhys; DWORD dwAvailPhys; DWORD dwTotalPageFile; DWORD dwAvailPageFile; DWORD dwTotalVirtual; DWORD dwAvailVirtual; } MEMORYSTATUS; // J/Direct Version /** @dll.struct() */ class MEMORYSTATUS { public int dwLength; public int dwMemoryLoad; public int dwTotalPhys; public int dwAvailPhys; public int dwTotalPageFile; public int dwAvailPageFile; public int dwTotalVirtual; public int dwAvailVirtual; }
Example 3: A native C data structure converted to a Java J/Direct structure.
Copyright © 1998, Dr. Dobb's Journal