Skip to main content

patch_seq_int_to_bytes_i32_be

Function patch_seq_int_to_bytes_i32_be 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_int_to_bytes_i32_be( stack: Stack, ) -> Stack
Expand description

Convert Int to 4-byte big-endian i32 String: ( Int – String )

The value is narrowed to i32 via as i32, which preserves the low 32 bits. Out-of-range Ints wrap rather than fault — the same semantics as Rust’s as cast. OSC encoders pass values they already know fit in i32; callers needing range checks should validate before calling.

§Safety

Stack must have an Int value on top.