django-vue3-admin-web/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
2025-10-20 21:21:14 +08:00

9 lines
209 B
JavaScript

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