Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CIL.java « lang « ikvm « classpath - github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 670abcfdeb954bfae4efe2bf736e82de3989f4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
  Copyright (C) 2003, 2004, 2005 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 cli.System.Byte box_byte(byte v);
    public static native cli.System.Boolean box_boolean(boolean v);
    public static native cli.System.Int16 box_short(short v);
    public static native cli.System.Char box_char(char v);
    public static native cli.System.Int32 box_int(int v);
    public static native cli.System.Single box_float(float v);
    public static native cli.System.Int64 box_long(long v);
    public static native cli.System.Double box_double(double v);

    public static native cli.System.SByte box_sbyte(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_sbyte(cli.System.SByte 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);
}