Skip to main content

encode_only

Function encode_only 

Source
pub fn encode_only(kind: Kind, values: &[i64]) -> Result<Option<Vec<u8>>>
Expand description

One candidate on its own, which is what the chooser calls once per entry in offered.

None when the encoding does not apply. This is here so that the time the chooser spends can be attributed to the candidate that spent it, which is the measurement F2 wants before anybody replaces the exhaustive search with a sampled one. It is not how a writer encodes a chunk: encode is, and picking a kind by hand gives up the only thing the chooser is for.

ยงErrors

As encode.