You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes. You may also get fields property from struct and access fiedls directly. Like:
,,,
var fields = struct.fields;
fields.connection_id = 0x41727101980;
fields.action = 0;
fiedls.transaction_id = 84548454;
Also please note that for 64 bit integers JavaScript has a limit of precision for conversion from|to Number value as 2^53. So maybe it is worth to represent 64bit fields as two 32 bit.
Hi. I'm a little unsure if I'm using this correctly. My code:
var struct = require('struct').Struct().word64Ube('connection_id').word32Ube('action').word32Ube('transaction_id');
struct.allocate();
struct.set("connection_id", 0x41727101980);
struct.set("action", 0);
struct.set("transaction_id", 84548454);
var buf = struct.buffer();
and then passing the buffer on to a dgram client. Is this correct usage?
The text was updated successfully, but these errors were encountered: