• Deflate some data with zlib headers and max output size

    Parameters

    • bytes: Uint8Array
    • size: number

    Returns Uint8Array | null

    null if the compressed data is larger than size, otherwise the compressed data