2003-03-31 18:54:35 +04:00
|
|
|
/*
|
2005-02-02 18:11:26 +03:00
|
|
|
Copyright (C) 2003, 2004, 2005 Jeroen Frijters
|
2003-03-31 18:54:35 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
{
|
2004-06-14 14:36:38 +04:00
|
|
|
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);
|
|
|
|
|
2005-02-02 18:11:26 +03:00
|
|
|
public static native cli.System.SByte box_sbyte(byte v);
|
2004-06-14 14:36:38 +04:00
|
|
|
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);
|
|
|
|
|
2005-02-02 18:11:26 +03:00
|
|
|
public static native byte unbox_sbyte(cli.System.SByte v);
|
2004-06-14 14:36:38 +04:00
|
|
|
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);
|
2003-03-31 18:54:35 +04:00
|
|
|
}
|