Fast incremental writer that becomes an ArrayBuffer on end().
Bun ArrayBufferSink class | API Reference | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/ArrayBufferSinkCoconstructorMendMflushMstartMwrite BuildDocsReferenceGuidesBlogDiscord /Bun/ArrayBufferSinkCoconstructorMendMflushMstartMwrite ArrayBufferSinkclass ArrayBufferSink end(): ArrayBuffer | Uint8ArrayArrayBuffer>;flush(): number | ArrayBuffer | Uint8ArrayArrayBuffer>; start(options?: { asUint8Array: boolean; highWaterMark: number; stream: boolean }): void;write(chunk: string | ArrayBuffer | SharedArrayBuffer | ArrayBufferViewArrayBufferLike>): number;
Search the reference...
/
class
Flush the internal buffer
If ArrayBufferSink.start was passed a stream option, this will return a ArrayBuffer If ArrayBufferSink.start was passed a stream option and asUint8Array, this will return a Uint8Array Otherwise, this will return the number of bytes written since the last flush
This API might change later to separate Uint8ArraySink and ArrayBufferSink
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Bun ArrayBufferSink class | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Fast incremental writer that becomes an ArrayBuffer on end().