示例#1
0
 public arrayType(rtype rtype = default, ref ptr <rtype> elem = default, ref ptr <rtype> slice = default, System.UIntPtr len = default)
 {
     this.m_rtypeRef = new ptr <rtype>(rtype);
     this.elem       = elem;
     this.slice      = slice;
     this.len        = len;
 }
        //private int cost;

        public Resource(int id, int type, int level, int value) //, int cost)
        {
            this.id    = id;
            this.type  = (rtype)type;
            this.level = level;
            this.value = value;
            //this.cost = cost;
        }
示例#3
0
 public mapType(rtype rtype = default, ref ptr <rtype> key = default, ref ptr <rtype> elem = default, ref ptr <rtype> bucket = default, Func <unsafe.Pointer, System.UIntPtr, System.UIntPtr> hasher = default, byte keysize = default, byte valuesize = default, ushort bucketsize = default, uint flags = default)
示例#4
0
 public funcType(rtype rtype = default, ushort inCount = default, ushort outCount = default)
 {
     this.m_rtypeRef = new ptr <rtype>(rtype);
     this.inCount    = inCount;
     this.outCount   = outCount;
 }
示例#5
0
 public interfaceType(rtype rtype = default, name pkgPath = default, slice <imethod> methods = default)
 {
     this.m_rtypeRef = new ptr <rtype>(rtype);
     this.pkgPath    = pkgPath;
     this.methods    = methods;
 }
示例#6
0
 public structType(rtype rtype = default, name pkgPath = default, slice <structField> fields = default)
 {
     this.m_rtypeRef = new ptr <rtype>(rtype);
     this.pkgPath    = pkgPath;
     this.fields     = fields;
 }
示例#7
0
 public ptrType(rtype rtype = default, ref ptr <rtype> elem = default)
 {
     this.m_rtypeRef = new ptr <rtype>(rtype);
     this.elem       = elem;
 }
示例#8
0
文件: value.cs 项目: zjmit/go2cs
 private static bool eq(this rtype x, types.Type _, object y)
 {
     return(types.Identical(x.t, y._ <rtype>().t));
 }
示例#9
0
文件: value.cs 项目: zjmit/go2cs
 private static long hash(this rtype x, types.Type _)
 {
     return(hashType(x.t));
 }
示例#10
0
 public chanType(rtype rtype = default, ref ptr <rtype> elem = default, System.UIntPtr dir = default)
 {
     this.m_rtypeRef = new ptr <rtype>(rtype);
     this.elem       = elem;
     this.dir        = dir;
 }