switch (type) {
    case 'buf':
      chunk = new Buffer(len);
      chunk.fill('x');
      break;