c-struct
c-struct copied to clipboard
a binary data packing & unpacking library for node.js
What it can do: 8, 16, 24, 32, 40 and 48 bit signed and unsigned integers. And Also in TODO to work on signed variables. ``` /node_modules/c-struct/lib/cstruct.js:83 res[el] = unpacker[s...
No love for 64 bit integers? :(
```js (function () { 'use strict'; var _ = require('c-struct'); module.exports = ClientVertifyReq; var CMD = NetMsgMsgId.ClientVertifyReqMsgID; var structName = 'ClientVertifyReq'; function ClientVertifyReq() { this.size = 0; this.flag = 0;...
First of all nice module, I am trying to convert some c structs into js objects so I can read and write a binary text file out. I can see...
Is it possible to get the defined string size from a sructure Struct definition: ``` var playerSchema = new _.Schema({ name: _.type.string(16) }); ``` Struct use: ``` var buf =...