JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

ffi/write

core-api


    cfunction
    src/core/ffi.c on line 1716, column 1

    (ffi/write ffi-type data &opt buf index)

    Append a native type, `ffi-type`, to a buffer as it would appear in 
    memory. This can be used to pass pointers to structs in the ffi, or 
    send C/C++/native structs over the network or to files. Returns a 
    modified buffer, `buf`, or a new buffer if not supplied.


0 examplesSign in to add an example
Loading...