public int CalculateSize() { int _total_size_ = 0; if (value != 0L) { _total_size_ += 1 + ComputeSize.ComputeInt64Size(value); } return(_total_size_); }
public int CalculateSize() { int _total_size_ = 0; if (value != null && value.Length != 0) { _total_size_ += 1 + ComputeSize.ComputeBytesSize(value); } return(_total_size_); }
public int CalculateSize() { int _total_size_ = 0; if (!string.IsNullOrEmpty(value)) { _total_size_ += 1 + ComputeSize.ComputeStringSize(value); } return(_total_size_); }
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_); }
public int CalculateSize() { int _total_size_ = 0; if (value != null && value.Count != 0) { _total_size_ += 1; int local_pack_size = 0; for (int i = 0; i < value.Count; ++i) { local_pack_size += ComputeSize.ComputeInt64Size(value[i]); } _total_size_ += local_pack_size + ComputeSize.ComputeInt32Size(local_pack_size); } return(_total_size_); }
public void WriteTo(IWriteStream output) { if (value != null && value.Count != 0) { output.WriteRawTag(10); int _total_pack_size_ = 0; for (int i = 0; i < value.Count; ++i) { _total_pack_size_ += ComputeSize.ComputeInt64Size(value[i]); } output.WriteInt32(_total_pack_size_); for (int i = 0; i < value.Count; ++i) { output.WriteInt64(value[i]); } } }
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_); }