encodedByteSize

open fun encodedByteSize(): Int

The size encode will produce, without producing it.

Exact rather than an estimate, because a sidecar writer has to lay bitmaps out before it writes them.