Skip to main content

kg

Function kg 

Source
pub unsafe extern "C" fn kg(byte: I) -> K
Expand description

Constructor of q byte object.

ยงExample

use kdbplus::api::*;
use kdbplus::api::native::*;

#[no_mangle]
pub extern "C" fn create_byte(_: K) -> K{
  unsafe{kg(0x3c)}
}
q)create_byte: libc_api_examples 2: (`create_byte; 1);
q)create_byte[]
0x3c