There's a fragile disconnect between setting max_size_in_bytes_, element_count_ and resizing the bytes_ vector. No single one of them is the source of truth.
Write comments at their member declarations to define exactly what they mean, and therefore determine the single source of truth.
There's a fragile disconnect between setting max_size_in_bytes_, element_count_ and resizing the bytes_ vector. No single one of them is the source of truth.
Write comments at their member declarations to define exactly what they mean, and therefore determine the single source of truth.