wire-runtime / com.squareup.wire / ProtoAdapter / encodedSizeWithTag

encodedSizeWithTag

open fun encodedSizeWithTag(tag: Int, @Nullable value: E?): Int

The size of tag and value in the wire format. This size includes the tag, type, length-delimited prefix (should the type require one), and value. Returns 0 if value is null.