cletus/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
2025-05-09 15:53:19 -05:00

11 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();
}
}