• File: parse.js
  • Full Path: /var/www/nodejs/daily_store_reports_nodejs/node_modules/binary/example/parse.js
  • Date Modified: 02/04/2023 9:31 PM
  • File size: 205 bytes
  • MIME-type: text/plain
  • Charset: utf-8
var buf = new Buffer([ 97, 98, 99, 100, 101, 102, 0 ]);

var binary = require('binary');
var vars = binary.parse(buf)
    .word16ls('ab')
    .word32bu('cf')
    .word8('x')
    .vars
;
console.dir(vars);