If you do want to get this size exactly correct, you'll need to take into account if nulls > 255, as you'll use extra bytes in that case.