Skip to main content

d9

Function d9 

Source
pub unsafe extern "C" fn d9(bytes: K) -> K
Expand description

Deserialize a bytes into q object.

§Example

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

#[no_mangle]
pub extern "C" fn reveal(bytes: K)->K{
  unsafe{d9(bytes)}
}
q)cancelling: `libc_api_examples 2: (`reveal; 1);
q)cancelling -8!(`contact`from; "space"; 12);
`contact`from
"space"
12

§Note

On success, returns deserialized K object. On error, (K) 0 is returned; use ee to retrieve the error string.