@MarshalsValue public static byte toNative(Bits<?> o, long flags) { return (byte) o.value; } }
@MarshalsValue public static int toNative(Bits<?> o, long flags) { return (int) o.value; } }
@MarshalsValue public static short toNative(Bits<?> o, long flags) { return (short) o.value; } }
@MarshalsValue public static int toNative(Enum<?> v, long flags) { return v.ordinal(); } }
@MarshalsValue public static byte toNative(Enum<?> v, long flags) { return (byte) ((ValuedEnum) v).value(); } }
@MarshalsValue public static int toNative(ABProperty o, long flags) { return o.value(); } }
@MarshalsValue public static Bits<?> toObject(Class<?> cls, long value, long flags) { Bits<?> f = (Bits<?>) VM.allocateObject(cls); f.value = value; f.mask = f.value == 0 ? -1 : f.value; return f; } @MarshalsValue
@MarshalsValue public static short toNative(ValuedEnum v, long flags) { return (short) v.value(); } }
@MarshalsValue public static ABProperty toObject(Class<?> cls, int v, long flags) { return ABProperty.valueOf(v); } @MarshalsValue
@MarshalsValue public static Bits<?> toObject(Class<?> cls, short value, long flags) { return AsLongMarshaler.toObject(cls, value & 0xffffL, flags); } @MarshalsValue
@MarshalsValue public static int toNative(OSStatus v, long flags) { return (int) v.getStatusCode(); } }
@MarshalsValue public static <T extends Enum<T> & ValuedEnum> ValuedEnum toObject(Class<T> cls, short value, long flags) { return AsLongMarshaler.toObject(cls, value & 0xffffL, flags); } @MarshalsValue
@MarshalsValue public static int toNative(ValuedEnum v, long flags) { return (int) v.value(); } }
@MarshalsValue public static <T extends Enum<T> & ValuedEnum> ValuedEnum toObject(Class<T> cls, int value, long flags) { return AsLongMarshaler.toObject(cls, value & 0xffffffffL, flags); } @MarshalsValue
@MarshalsValue public static Bits<?> toObject(Class<?> cls, int value, long flags) { return AsLongMarshaler.toObject(cls, value & 0xffffffffL, flags); } @MarshalsValue
@MarshalsValue public static <T extends Enum<T> & ValuedEnum> ValuedEnum toObject(Class<T> cls, byte value, long flags) { return AsLongMarshaler.toObject(cls, value, flags); } @MarshalsValue
@MarshalsValue public static <T extends Enum<T> & ValuedEnum> ValuedEnum toObject(Class<T> cls, short value, long flags) { return AsLongMarshaler.toObject(cls, value, flags); } @MarshalsValue
@MarshalsValue public static short toNative(ValuedEnum v, long flags) { return (short) v.value(); } }
@MarshalsValue public static @MachineSizedUInt long toNative(Bits<?> o, long flags) { return o.value; } }
@MarshalsValue public static Bits<?> toObject(Class<?> cls, @MachineSizedUInt long value, long flags) { return AsLongMarshaler.toObject(cls, value, flags); } @MarshalsValue