コード例 #1
0
            public int CalculateSize()
            {
                int _total_size_ = 0;

                if (key != 0)
                {
                    _total_size_ += (1 + 4);
                }
                if (value != null)
                {
                    _total_size_ += 1 + ComputeSize.ComputeMessageSize(value);
                }
                return(_total_size_);
            }
コード例 #2
0
        public int CalculateSize()
        {
            int _total_size_ = 0;

            if (point3map != null && point3map.Count != 0)
            {
                var entry = new Point3mapEntry();
                foreach (var itor in point3map)
                {
                    _total_size_ += 1;
                    entry.key     = itor.Key;
                    entry.value   = itor.Value;
                    _total_size_ += ComputeSize.ComputeMessageSize(entry);
                }
            }
            return(_total_size_);
        }