1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! A `#[doc(hidden)]` module used by the `afia-component-macro` crate.
/// Concatenate byte slices into a byte array.
///
/// ```
/// # use afia_component::_macro::concat_byte_slices;
///
/// #[cfg_attr(target_arch = "wasm32", link_section = "__afia__$output_descriptor")]
/// pub static _OUTPUT_DESCRIPTORS: [u8; 68] = concat_byte_slices(&[
/// &[0],
/// &[222,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
/// &[12], b"My Component",
/// &[36, 0],
/// b"This is the component's description."
/// ]);
/// ```
///
/// TODO: We can delete this when [`std::concat_bytes`] becomes stable.
pub const