uproot.LZ4

Defined in uproot.compression on line 262.

Inheritance order:

  1. uproot.compression.Compression

  2. uproot.compression._DecompressLZ4

class uproot.compression.LZ4(level)
Parameters:

level (int, 0-9) – Compression level: 0 is uncompressed, 1 is minimally compressed, and 9 is maximally compressed.

Represents the LZ4 compression algorithm.

The cramjam and xxhash libraries must be installed.

compress

LZ4.compress(data: bytes) bytes

from_code

Inherited from uproot.compression.Compression.

classmethod LZ4.from_code(code)

Constructs a uproot.compression.Compression from a raw fCompress integer.

from_code_pair

Inherited from uproot.compression.Compression.

classmethod LZ4.from_code_pair(algorithm, level)

Constructs a uproot.compression.Compression from a pair of integers representing algorithm and level.

code

Inherited from uproot.compression.Compression.

LZ4.code

This uproot.compression.Compression as a raw fCompress integer.

code_pair

Inherited from uproot.compression.Compression.

LZ4.code_pair

This uproot.compression.Compression as a 2-tuple of integers representing algorithm and level.

level

Inherited from uproot.compression.Compression.

LZ4.level

0 is uncompressed, 1 is minimally compressed, and 12 is maximally compressed.

Type:

The compression level

decompress

Inherited from uproot.compression._DecompressLZ4.

LZ4.decompress(data: bytes, uncompressed_bytes=None) bytes