ikvm-fork/classpath/ikvm/lang/CIL.java

56 строки
2.3 KiB
Java

/*
Copyright (C) 2003, 2004 Jeroen Frijters
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Jeroen Frijters
jeroen@frijters.net
*/
package ikvm.lang;
public class CIL
{
public static native byte unbox_byte(Object o);
public static native boolean unbox_boolean(Object o);
public static native short unbox_short(Object o);
public static native char unbox_char(Object o);
public static native int unbox_int(Object o);
public static native float unbox_float(Object o);
public static native long unbox_long(Object o);
public static native double unbox_double(Object o);
public static native Object box_byte(byte v);
public static native Object box_boolean(boolean v);
public static native Object box_short(short v);
public static native Object box_char(char v);
public static native Object box_int(int v);
public static native Object box_float(float v);
public static native Object box_long(long v);
public static native Object box_double(double v);
public static native cli.System.Byte box_ubyte(byte v);
public static native cli.System.UInt16 box_ushort(short v);
public static native cli.System.UInt32 box_uint(int v);
public static native cli.System.UInt64 box_ulong(long v);
public static native byte unbox_ubyte(cli.System.Byte v);
public static native short unbox_ushort(cli.System.UInt16 v);
public static native int unbox_uint(cli.System.UInt32 v);
public static native long unbox_ulong(cli.System.UInt64 v);
}