Пример #1
0
def MessageByteSize(field_number, message):
  return (TagByteSize(field_number)
          + _VarUInt64ByteSizeNoTag(message.ByteSize())
          + message.ByteSize())
Пример #2
0
def GroupByteSize(field_number, message):
  return (2 * TagByteSize(field_number)
          + message.ByteSize())