Skip to main content

state_payload_charge

Function state_payload_charge 

Source
fn state_payload_charge(payload: &StatePayload) -> Result<usize>
Expand description

Bytes one position’s state holds.

A numeric payload’s components are inline and have always been charged as such. A histogram payload is charged for what it actually carries: the boxed state, then both histograms’ rows, spans, buckets and custom bounds, so a wide bucket layout pays for itself and an empty placeholder costs almost nothing.