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

    Function bytes

    • Create a bytes-format append record with pre-calculated metered size. String header names and values are encoded as UTF-8.

      Parameters

      • params: {
            body: Uint8Array;
            headers?: readonly (
                readonly [
                    string
                    | Uint8Array<ArrayBufferLike>,
                    string | Uint8Array<ArrayBufferLike>,
                ]
            )[];
            timestamp?: number | Date;
        }

      Returns BytesAppendRecord