Function kdb_c_api::new_guid [−][src]
pub fn new_guid(guid: [G; 16]) -> K
Expand description
Constructor of q GUID object. Relabeling of ku
.
Example
use kdb_c_api::*; #[no_mangle] pub extern "C" fn create_guid(_: K) -> K{ new_guid([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