Skip to main content

validate

Function validate 

Source
pub fn validate(
    encoding: &Encoding,
    limits: &Limits,
) -> Result<SceneCost, WireError>
Expand description

Check encoding and return what it costs. limits bounds the cost.

ยงErrors

The first invariant the encoding breaks.