h1z1-server
    Preparing search index...

    LZ4 compression class with static methods for encoding blocks and calculating the encoding bound.

    Index

    Constructors

    Properties

    Constructors

    Properties

    encodeBlock: (src: any, dst: any, sIdx?: number, eIdx?: number) => number

    Encodes a block of data using LZ4 compression.

    Type declaration

      • (src: any, dst: any, sIdx?: number, eIdx?: number): number
      • Parameters

        • src: any

          The source data to compress.

        • dst: any

          The destination buffer to store the compressed data.

        • OptionalsIdx: number

          The starting index in the source data.

        • OptionaleIdx: number

          The ending index in the source data.

        Returns number

        The size of the compressed block.

    encodeBound: (isize: number) => number

    Calculates the size of the encoded block given the input size.

    Type declaration

      • (isize: number): number
      • Parameters

        • isize: number

          The input size.

        Returns number

        The size of the encoded block.