RTCForge API Reference v1.1.1
    Preparing search index...

    StorageSink that accumulates the received file in a single in-memory buffer.

    Suitable for small-to-moderate files where the whole payload can fit in memory. The buffer is pre-sized from the file metadata and grown on demand if a write extends past its end.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Copy a chunk into the buffer at offset, growing the buffer if the write extends past its current end.

      Parameters

      • offset: number

        Byte offset at which to write.

      • data: Uint8Array

        The chunk bytes.

      Returns Promise<void>