Welcome to mirror list, hosted at ThFree Co, Russian Federation.

print-chars-from-buffer.js « fixtures « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3b5647d6ed6156863b82e3463eeb3dbb36cd0a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
var common = require('../common');
var assert = require('assert');

var n = parseInt(process.argv[2]);

var b = new Buffer(n);
for (var i = 0; i < n; i++) {
  b[i] = 100;
}

process.stdout.write(b);