/// Add a raw byte slice into this code section as a global. pubfn raw(&mutself, data: &[u8]) -> &mutSelf { self.bytes.extend(data); self.num_added += 1; self
}
}
/// A global's type. #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pubstruct GlobalType { /// This global's value type. pub val_type: ValType, /// Whether this global is mutable or not. pub mutable: bool, /// Whether this global is shared or not. pub shared: bool,
}
impl Encode for GlobalType { fn encode(&self, sink: &mut Vec<u8>) { self.val_type.encode(sink); letmut flag = 0; ifself.mutable {
flag |= 0b01;
} ifself.shared {
flag |= 0b10;
}
sink.push(flag);
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-08-22)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.