lib/ljm-ffi.js
function allocateAndFillSyncFunctionArgs(functionInfo, funcArgs, userArgs) {
    functionInfo.requiredArgTypes.forEach(function(type, i) {
        var buf = ljTypeOps[type].allocate(userArgs[i]);
        buf = ljTypeOps[type].fill(buf, userArgs[i]);
        funcArgs.push(buf);
    });
}
function allocateAndFillSyncFunctionArgs(functionInfo, funcArgs, userArgs) {
    functionInfo.requiredArgTypes.forEach(function(type, i) {
        var buf = ljTypeOps[type].allocate(userArgs[i]);
        buf = ljTypeOps[type].fill(buf, userArgs[i]);
        funcArgs.push(buf);
    });
}
function allocateAndFillSyncFunctionArgs ( functionInfo , funcArgs , userArgs ) { functionInfo . requiredArgTypes . forEach ( function ( type , i ) { var buf = ljTypeOps [ type ] . allocate ( userArgs [ i ] ) ; buf = ljTypeOps [ type ] . fill ( buf , userArgs [ i ] ) ; funcArgs . push ( buf ) ; } ) ; }
Define a function that is used to allocate and fill buffers to communicate with the LJM library through ffi.
Define a function that is used to allocate and fill buffers to communicate with the LJM library through ffi .