Hi All,
Suppose:
Header message:
records types byte
1000 11 368
My question:
How I should be in accordance with the specific byte aligned (8 bytes or others), convert KDB + data into binary?
Have a good week!
Thanks,
Sky
Hi All,
Suppose:
Header message:
1000 11 368
My question:
How I should be in accordance with the specific byte aligned (8 bytes or others), convert KDB + data into binary?
Have a good week!
Thanks,
Sky
t:( records:1000;types 11; byte:368)
save `:t
This will save your table to binary
Check out this page for more details
Hi Jeremy,
This method can’t set up 8 byte alignment.
If according to this method, the header file, structure and byte alignment is what?
Thanks,
Sky
? 2015?4?22??? UTC+8??5:24:58?Jeremy Lucid???
t:( records:1000;types 11; byte:368)
save `:t
This will save your table to binary
Check out this page for more details
While you can try to shoehorn q to write some binary output of the format you want, it’s far from perfect – q does not have built-in support for non-q binary output.
I guess a better bet is to write a simple library (dll/so) yourself that performs the binary output instead.
Hi Fiying,
Thanks.It seems that only to do so.
Sky
? 2015?4?23??? UTC+8??9:58:17?Flying???
While you can try to shoehorn q to write some binary output of the format you want, it’s far from perfect – q does not have built-in support for non-q binary output.
I guess a better bet is to write a simple library (dll/so) yourself that performs the binary output instead.