Exemple #1
0
        public int length()
        {
            int sum = 0;

            sum += ProtoCRT_t <UInt32> .type_length();

            foreach (var item in this)
            {
                sum += item.length();
            }
            return(sum);
        }
Exemple #2
0
        public int length()
        {
            int sum = 0;

            sum += ProtoCRT_t <UInt32> .type_length();

            if (null != value_ && value_.Length != 0)
            {
                byte[] r_byte = StringHelper.String2GB2312(value_);
                sum += r_byte.Length;
            }
            return(sum);
        }
Exemple #3
0
        public int length()
        {
            int sum = 0;

            sum += ProtoCRT_t <UInt32> .type_length();

            if (null == value_ || 0 == value_.Length)
            {
                return(sum);
            }
            sum += ProtoCRT_t <T> .type_length() * value_.Length;

            return(sum);
        }