Function kdbplus::api::native::ku [−][src]
pub unsafe extern "C" fn ku(array: U) -> K
Expand description
Constructor of q GUID object.
Example
use kdbplus::api::*; use kdbplus::api::native::*; #[no_mangle] pub extern "C" fn create_guid(_: K) -> K{ unsafe{ku(U::new([0x1e_u8, 0x11, 0x17, 0x0c, 0x42, 0x24, 0x25, 0x2c, 0x1c, 0x14, 0x1e, 0x22, 0x4d, 0x3d, 0x46, 0x24]))} }
q)create_guid: libc_api_examples 2: (`create_guid; 1);
q)create_guid[]
1e11170c-4224-252c-1c14-1e224d3d4624