node/test/fixtures/print-chars-from-buffer.js

12 lines
200 B
JavaScript
Raw Normal View History

2010-12-05 07:20:34 +08:00
var common = require('../common');
var assert = require('assert');;
var n = parseInt(process.argv[2]);
2010-12-05 08:11:57 +08:00
var b = new Buffer(n);
2010-12-03 09:03:18 +08:00
for (var i = 0; i < n; i++) {
b[i] = 100;
}
process.stdout.write(b);