Size returns the size in bytes of the wire-format encoding of m. Note that Size might return more bytes than Marshal will write in the case of lazily decoded messages that arrive in non-minimal wire format: see https://protobuf.dev/reference/go/size/ for more details.
(m Message)
| 17 | // lazily decoded messages that arrive in non-minimal wire format: see |
| 18 | // https://protobuf.dev/reference/go/size/ for more details. |
| 19 | func Size(m Message) int { |
| 20 | return MarshalOptions{}.Size(m) |
| 21 | } |
| 22 | |
| 23 | // Size returns the size in bytes of the wire-format encoding of m. |
| 24 | // |