Example #1
0
        /// <summary>
        /// Used to get DataType Size for provided AttributeSize.
        /// </summary>
        /// <param name="strArg"></param>
        /// <returns></returns>
        public static int GetTypeSize(AttributeTypeSize type)
        {
            switch (type)
            {
            case AttributeTypeSize.Byte1:
                return(1);

            case AttributeTypeSize.Byte2:
                return(2);

            case AttributeTypeSize.Byte4:
                return(4);

            case AttributeTypeSize.Byte8:
                return(8);

            case AttributeTypeSize.Byte16:
                return(16);
            }
            return(0);
        }
Example #2
0
        /// <summary>        
        /// Used to get DataType Size for provided AttributeSize.
        /// </summary>
        /// <param name="strArg"></param>
        /// <returns></returns>
        public static int GetTypeSize(AttributeTypeSize type)
        {
            switch(type)
            {
                case AttributeTypeSize.Byte1:
                    return 1;

                case AttributeTypeSize.Byte2:
                    return 2;

                case AttributeTypeSize.Byte4:
                    return 4;

                case AttributeTypeSize.Byte8:
                    return 8;

                case AttributeTypeSize.Byte16:
                    return 16;
            }
            return 0;
        }
Example #3
0
 public RedBlack(string cacheName, AttributeTypeSize size)
     : this()
 {
     _cacheName = cacheName;
     _typeSize  = size;
 }
Example #4
0
        /// <summary>        
        /// Used to get DataType Size for provided AttributeSize.
        /// </summary>
        /// <param name="strArg"></param>
        /// <returns></returns>
        public static int GetTypeSize(AttributeTypeSize type)
        {
            switch (type)
            {
                case AttributeTypeSize.Byte1:
                    return 1;

                case AttributeTypeSize.Byte2:
                    return 2;

                case AttributeTypeSize.Byte4:
                    return 4;

                case AttributeTypeSize.Byte8:
                    return 8;

                case AttributeTypeSize.Byte16:
                    return 16;
            }
            return 0;
        }
Example #5
0
 public RedBlack(string cacheName, AttributeTypeSize size)
     : this()
 {
     _cacheName = cacheName;
     _typeSize = size;
 }