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

encodedSize

abstract fun encodedSize(value: E): Int

The size of the non-null data value. This does not include the size required for a length-delimited prefix (should the type require one).