pub unsafe extern "C" fn b9(mode: I, qobject: K) -> KExpand description
Serialize q object and return serialized q byte list object on success: otherwise null. Mode is either of:
- -1: Serialize within the same process.
- 1: retain enumerations, allow serialization of timespan and timestamp: Useful for passing data between threads
- 2: unenumerate, allow serialization of timespan and timestamp
- 3: unenumerate, compress, allow serialization of timespan and timestamp
ยงExample
use kdbplus::api::*;
use kdbplus::api::native::*;
#[no_mangle]
pub extern "C" fn conceal(object: K)->K{
unsafe{b9(3, object)}
}q)jamming: `libc_api_examples 2: (`conceal; 1);
q)jamming til 3
0x0100000026000000070003000000000000000000000001000000000000000200000000000000
q)-9!jamming "Look! HE has come!!"
"Look! HE has come!!"