Skip to main content

## __arm_mte_set_tag

# Function __arm_mte_set_tag

Source

    pub unsafe fn __arm_mte_set_tag<T>(tag_address: *const T)

🔬This is a nightly-only experimental API. (`stdarch_aarch64_mte` #129010)
Available on target feature `mte` and (AArch64 or ARM64EC) only.
Expand description

Store an allocation tag for the 16-byte granule of memory.

`tag_address`: A pointer containing an address and a logical tag, which must be 16-byte aligned.

SAFETY: `tag_address` must be 16-byte aligned. The tag will apply to the entire 16-byte memory granule.