parse.js 205 B

1234567891011
  1. var buf = new Buffer([ 97, 98, 99, 100, 101, 102, 0 ]);
  2. var binary = require('binary');
  3. var vars = binary.parse(buf)
  4. .word16ls('ab')
  5. .word32bu('cf')
  6. .word8('x')
  7. .vars
  8. ;
  9. console.dir(vars);