MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / length

Method length

src/serde/variant.rs:38–40  ·  view source on GitHub ↗
(&self, variant_index: u8)

Source from the content-addressed store, hash-verified

36
37impl VariantDecoder<'_> {
38 pub fn length(&self, variant_index: u8) -> usize {
39 self.histogram[variant_index as usize]
40 }
41
42 /// Returns the max variant index if there were any variants.
43 pub fn max_variant_index(&self) -> Option<u8> {

Callers 1

populateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected