/// An encoder for the start section of WebAssembly components. /// /// # Example /// /// ``` /// use wasm_encoder::{Component, ComponentStartSection}; /// /// let start = ComponentStartSection { function_index: 0, args: [0, 1], results: 1 }; /// /// let mut component = Component::new(); /// component.section(&start); /// /// let bytes = component.finish(); /// ``` #[derive(Clone, Debug)] pubstruct ComponentStartSection<A> { /// The index to the start function. pub function_index: u32, /// The arguments to pass to the start function. /// /// An argument is an index to a value. pub args: A, /// The number of expected results for the start function. /// /// This should match the number of results for the type of /// the function referenced by `function_index`. pub results: u32,
}
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.