NeahNew/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
2025-05-04 13:45:45 +02:00

12 lines
273 B
JavaScript

import { Writable } from "stream";
export class Collector extends Writable {
constructor() {
super(...arguments);
this.bufferedBytes = [];
}
_write(chunk, encoding, callback) {
this.bufferedBytes.push(chunk);
callback();
}
}