uproot.ZSTD — Uproot documentation

# uproot.ZSTD

Defined in uproot.compression on line 312.

Inheritance order:
uproot.compression.Compression uproot.compression._DecompressZSTD

class uproot.compression.ZSTD(level)
  Parameters:

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

  Represents the ZSTD compression algorithm.

  The `cramjam` library must be installed.

## compress

ZSTD.compress(data: bytes) → bytes

## from_code

Inherited from uproot.compression.Compression.

classmethod ZSTD.from_code(code)

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

## from_code_pair

Inherited from uproot.compression.Compression.

classmethod ZSTD.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.

ZSTD.code

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

## code_pair

Inherited from uproot.compression.Compression.

ZSTD.code_pair

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

## level

Inherited from uproot.compression.Compression.

ZSTD.level

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

  Type:

    The compression level

## decompress

Inherited from uproot.compression._DecompressZSTD.

ZSTD.decompress(data: bytes, uncompressed_bytes=None) → bytes