public static final int BYTE_ORDER = ByteOrder.nativeOrder().equals(ByteOrder.BIG_ENDIAN) ? BIG_ENDIAN : LITTLE_ENDIAN;
protected Platform() {
}
public void init(Ruby runtime, RubyModule ffi) {
RubyModule platform = ffi.defineModuleUnder("Platform");
platform.defineConstant("ADDRESS_SIZE", runtime.newFixnum(addressSize()));
platform.defineConstant("LONG_SIZE", runtime.newFixnum(longSize()));
platform.defineConstant("OS", runtime.newString(OS));
platform.defineConstant("ARCH", runtime.newString(ARCH));
platform.defineConstant("NAME", runtime.newString(NAME));
platform.defineConstant("IS_WINDOWS", runtime.newBoolean(IS_WINDOWS));
platform.defineConstant("IS_BSD", runtime.newBoolean(IS_BSD));
platform.defineConstant("IS_FREEBSD", runtime.newBoolean(IS_FREEBSD));
platform.defineConstant("IS_OPENBSD", runtime.newBoolean(IS_OPENBSD));
platform.defineConstant("IS_SOLARIS", runtime.newBoolean(IS_SOLARIS));
platform.defineConstant("IS_LINUX", runtime.newBoolean(IS_LINUX));
platform.defineConstant("IS_MAC", runtime.newBoolean(IS_MAC));
platform.defineConstant("LIBC", runtime.newString(LIBC));
platform.defineConstant("BYTE_ORDER", runtime.newFixnum(BYTE_ORDER));
platform.defineConstant("BIG_ENDIAN", runtime.newFixnum(BIG_ENDIAN));
platform.defineConstant("LITTLE_ENDIAN", runtime.newFixnum(LITTLE_ENDIAN));
}