@s2-dev/streamstore - v0.26.1
    Preparing search index...

    Function maxBodyBytes

    • Maximum body size in bytes for a record with the given headers, such that a batch containing only that record stays within MAX_APPEND_BYTES.

      When batching multiple records, the limit applies to the sum of their metered sizes, so the available body size shrinks accordingly.

      Parameters

      • Optionalheaders: readonly (
            readonly [
                string
                | Uint8Array<ArrayBufferLike>,
                string | Uint8Array<ArrayBufferLike>,
            ]
        )[]

      Returns number