pub fn charged_bytes(buf: Vec<u8>, charge: Charge) -> Result<Bytes, ChargeError>Expand description
buf as Bytes that carry charge, which must already cover buf’s
allocation: the owner record is charged first (OWNER_COST), and the
whole charge returns when the last slice drops, whoever holds it.