ZstdFrameInfo.inspect

ZstdFrameInfo inspect(const(ubyte)[] data)

Inspects a Zstandard frame header and extracts metadata.

Parameters

dataThe start of the compressed data (at least ZSTD_FRAMEHEADERSIZE_MAX bytes).

Returns

A ZstdFrameInfo struct with the extracted metadata.

Throws

ZstdException if the data cannot be parsed.