should unpack the values to the provided array0ms ‣
var output = [0,0];
btools.readTo('H', file, output);
assert.deepEqual(output, [65535, 0]);
should unpack the values to the provided array starting on the index0ms ‣
var index = 0;
var output = [0];
btools.readTo('H', file, output, false, 2);
assert.deepEqual(output, [0]);
should unpack the values to the provided array starting on the index0ms ‣
var index = 0;
var output = [0];
btools.readTo('H', file, output, false, 1);
assert.deepEqual(output, [255]);
Original buffer should be untouched1ms ‣
assert.deepEqual(file, [255, 255, 0, 0]);