Beispiel #1
0
        public static LayeInt ValueOf(lint value)
        {
#if LAYE64
            var index = (int)value;
#else
            var index = value;
#endif
            if (index >= IntCache.MIN && index < IntCache.MAX)
                return IntCache.CACHE[index - IntCache.MIN];
            return new LayeInt(value);
        }
Beispiel #2
0
 public LayeInt(lint value)
     : base(TYPE)
 {
     this.value = value;
 }