Documentation
    Preparing search index...

    Function mockImageBytesBase64

    • Deterministic placeholder bytes of a catalog image as standard base64. Byte i depends only on the image id and i, so overlapping reads agree.

      Parameters

      • image: LinuxDistroImage

        Catalog image.

      • offset: number

        First byte offset.

      • length: number

        Byte count (already clipped to the file size).

      Returns string

      Padded base64 of exactly length bytes.

      mockImageBytesBase64(LINUX_DISTROS[0], 0, 3).length === 4;